Re:Performance of the Python 3.14 tail-call interpreter
by chippiewill on Monday March 10, 2025 @11:11AM
(#43321512)
The faster cpython project was for 5x over the 3.10 baseline. CPython 3.13 is currently running at something like 1.6x speed compared to 3.10. With the JIT enabled it goes up by a few more single digit percentage point. With the changes in 3.14 it'll be something like 1.8x speed-up.
So it's slowly getting there, I think the faster cpython project was mostly around the idea that the JIT can get a lot faster as it starts to optimise more and more and that only just got shipped in 3.13, so there's a lot of headroom. We know that PyPy (an existing JIT implementation) is close to 5x faster than CPython a lot of the time already.
There's also now the experimental free-threading build which speeds up multithreaded Python applications (Not by a lot right now though unfortunately).
Re:Performance of the Python 3.14 tail-call interpreter
by Twirrim on Monday March 10, 2025 @10:15AM
(#43320884)
There has been a lot of speed ups coming out of that project. It's not being done in one go, though, but spread out over the last several releases. So while individual speedups may not look that significant, remember that it is compound on the previous release's speed up.
Re:Performance of the Python 3.14 tail-call interpreter
by throwaway2037 on Tuesday March 11, 2025 @01:11AM
(#43329331)
Original details here: https://github.com/markshannon/faster-cpython/blob/master/pl...
About the author: https://us.pycon.org/2023/speaker/profile/81/index.html
> His academic and commercial work is focused on compilers, virtual machines and static analysis for Python. His PhD was on building virtual machines for dynamic languages.
This dude looks God-level.Half-joking: Maybe MSFT can also poach Lars Bak of Google V8-fame.
Several releases in, have we seen even a 2x speedup? Or more like 0.2x at best?
Not trying to dismiss the interpreter changes - more want to know if those speedup plans were even remotely realistic, and if anything close enough to even 1/5 of what was promised will really come out of them...