Re:Python-3.13 is more than 100% slower with –disable-gil
by rbanffy on Saturday July 20, 2024 @04:59PM
(#41019848)
Won't this be the almost worst possible case imaginable for this?
[ Parent
| on HN ]
Re:Python-3.13 is more than 100% slower with –disable-gil
by lambdaone on Saturday July 20, 2024 @05:08PM
(#41019935)
Absolutely. Global variables are always going to need some sort of arbitration mechanism, and this is doing it in the innermost loop. Even if there's only one thread, something needs to find that out. I'm surprised it's only half the speed.
Re:Python-3.13 is more than 100% slower with –disable-gil
by lakrman on Saturday July 20, 2024 @05:24PM
(#41020067)
No, with sum moved into the function I get 6s for --enable-gil and 15.5s for --disable-gil on my machine, which is in the same order.
As an added bonus, the stock Debian Python 3.7 is faster than both versions.
So the alleged "faster python" promises are not kept, and neither are the "at most 15% slowdown" promises for the no-gil project.
Re:Python-3.13 is more than 100% slower with –disable-gil
by rbanffy on Saturday July 20, 2024 @07:56PM
(#41021239)
Would be worthwhile to run something more significant, maybe pybench.