Re:Python 3.11 Performance Benchmarks Are Looking Fantastic
by O5vYtytb on Monday June 06, 2022 @11:04PM
(#31649416)
Most python code in the world is currently single threaded. It makes sense to me to start with the low hanging fruit that affects the majority of existing code and then move on to harder problems.
[ Parent
| on HN ]
Re:Python 3.11 Performance Benchmarks Are Looking Fantastic
by __d on Tuesday June 07, 2022 @05:55AM
(#31651954)
Sure, but Guido put a pre-condition on GIL removal years ago that it must not cause single-threaded code to suffer a performance penalty.
So Sam came up with a way to ensure that (on balance, if not in every example), we could have same-or-better performance and no GIL. Awesome!
But now we're getting the performance boosts without the GIL removal, and so in the next release, the GIL removal will cause a performance regression unless we can somehow find more performance boosts. It feels like this could just happen forever.
Re:Python 3.11 Performance Benchmarks Are Looking Fantastic
by O5vYtytb on Wednesday June 08, 2022 @09:36AM
(#31667116)
There's many more improvements to be made in single threaded performance, including things like JIT. Future improvements are complicated, they won't be a free lunch like this first round has generally been. My feeling is that things like JIT and nogil will start out as optional and work their way into the ecosystem over time where the performance implications are less severe for the general use case.