5 ms·
How can Python 3.11 be 60% faster than 3.10?
by roschdal 4y ago
How can Python 3.11 be 60% faster than 3.10?
- samanator 4y agoI think this is where they introduce the JIT (Guido and co are working on this at Microsoft) or add JIT optimizations.
- Pandabob 4y agoApparently the JIT won't be introduced in 3.11 and these speed gains are due to other optimisations [0]. > Q: Is there a JIT compiler? > A: No. We’re still exploring other optimizations. [0]: https://docs.python.org/3.11/whatsnew/3.11.html#faster-cpython https://docs.python.org/3.11/whatsnew/3.11.html#faster-cpyth...
- samanator 4y agoYou're right. My mistake. Thanks for the link!
- zrtal 4y agoMark Shannon and co.
- 0x008 4y agoAnd 3.10 is already 25% faster than 3.8
- kzrdude 4y agoUp to 60%. In average 25% on pyperformance which is another benchmark. See the faster cpython work, it's not a JIT but plenty of other easier optimizations
- joshlk 4y agoThe table of “Specializing Adaptive Interpreter” changes are interesting: https://docs.python.org/3.11/whatsnew/3.11.html#pep-659-specializing-adaptive-interpreter https://docs.python.org/3.11/whatsnew/3.11.html#pep-659-spec...
- kzrdude 4y agoThat's the best link. Scroll up too, the sections just above are significant too.
- zrtal 4y agoI'd take the official claims and benchmarks with a huge dose of skepticism. Python is no longer a free software project. The infrastructure is censored and dissent is suppressed ruthlessly. The entire ecosystem is great at marketing. Critical people like Armin Ronacher have left long ago. I'd like to see truly independent benchmarks from unbiased or critical outsiders. But in general those do not have any interest in Python.
- maleldil 4y ago> Python is no longer a free software project. The infrastructure is censored and dissent is suppressed ruthlessly. Those are serious allegations. Can you back up these claims?
- UncleEntity 4y agoWalrus operator… I’m kidding of course but that seems like the camel who broke the bridge too far.
- williamtwild 4y agoCan you suggest an alternative? (not perl)
- samhw 4y agoIf you change programming languages based on random comments from loonies on the internet, I don't think you're ever going to stick with a language long enough to implement hello world...
- TillE 4y agoSure it's a highly productive language with an enormous variety of quality libraries available, but uh, some guy on the internet doesn't like the developers or something.
- mrits 4y agoI don't see how you can suggest you have a deep understanding of Python's infrastructure while concurrently not being aware of any unbiased benchmarks from critical outsiders.
- bjoli 4y agoIt could be even more, but cpython (being the reference implementation) has been kept simple. PyPy manages far more.