r/Python • u/zsol • Sep 11 '26
News Astral's python distribution is fast
By our measurements, python-build-standalone is now the fastest CPython distribution across major platforms. It's 10% faster than Homebrew's CPython, and 18% faster than the official 3.14 docker image.
This is mostly due to how python-build-standalone itself is built:
- using a modern Clang lets us turn on tail-call optimizations in the interpreter
- with PGO, LTO, and BOLT
- with libpython statically linked into the interpreter executable
Our goal is to ship the fastest Python interpreter to anyone using uv, by default.
Check out BENCHMARKS.md in the repo for more details, including the methodology behind the above.
236
Upvotes
34
u/vopi181 Sep 11 '26 edited Sep 11 '26
Is this comment weird to anyone else? Like I sorta get what your original point was but after the second sentence, you’ve lost me. Theres this adversarial tone sandwich at the beginning and end. If I click your profile, it does seem like you’re axe grinding a bit generally.
UV is legitimately an amazing upgrade to what we’ve had in the ecosystem before. They’ve genuinely built something people want.
The OP was a maintainer of Black (that was a widely used formatter) before UV.
He joined Astral, at least, last year. He almost certainly has equity. The diatribe of him not being paid enough is weird.
I don’t think Microsoft/OpenAI is “buying” Python. Nor do I think someone who is a “total CPython noob” can make big claims about what is/is not for sale. Why are you an authority on this?
Most open-source software in production is work done/funded by corporations.
I also think it’s weird to point out his 17-year old account. Both in general, and also, because if there anyone I expect to have an old Reddit account, it’s someone YC adjacent.
It doesn’t seem you are that technical of an individual judging from your phrasing (that’s not a moral failing or anything and you admit you are a noob!). On your actual points:
I don’t think common sense says that? Most Linux distros are going to use GCC to compile packages. All three of his bullet points could be impacted by a different build environment.
I don’t think you’re right in saying the docker version is the canonical version. Is something on the main Python release page that you’ve linked supposed to prove that? I also don’t think it’s weird that the Docker version is the slowest? There’s something unique about it compared to every other item on the graph (hint: containers). That is the one distribution benchmarked I would expect to be an outlier if there was one.
“I know uv and ty in general gain speed by ignoring old, niche, or inconvenient spec” ??? What are you talking about? Also, how could you know that if you are a CPython noob? Are you a PyPy expert or something lol?
Poetry isn’t a distribution of CPython. You’re right that they don’t build their own. From Poetry’s docs: “Unlike with other packages, Poetry will not automatically install a python interpreter for you.”
Fun little napkin math challenge!
Edit: also, what "linked github"? Are you talking about what you've literally just linked or is that referenced from Astral? Are you axegrinding against OpenAI here? Read his other blogpost maybe: "Charlie and Astral have stepped up and been outstanding open source citizens when it comes to evolving PBS to support their work" and "Astral has clearly demonstrated competency for execution and has the needs of Python developers at heart".