News for hackers. Stuff that matters.
Re:The GIL and its effects on Python multithreading by gjulianm on Wednesday September 29, 2021 @10:54AM (#28694473)
Part of the heavy lifting is in C extensions, but part is in Python code that's hard to migrate to C, and that's the part that takes more time now after migrating the low hanging fruit. I'd get a bit of benefit, but far from what I'd get if the GIL wasn't a thing.
Re:The GIL and its effects on Python multithreading by xscott on Wednesday September 29, 2021 @11:04AM (#28694636)
Depending on the nature of the interpreted Python part of the code, you could get a 60-100 times speedup by using PyPy (no rewriting needed). Removing the GIL in CPython would only beat that if you could get 60-100 times parallelism.
Re:The GIL and its effects on Python multithreading by gjulianm on Wednesday September 29, 2021 @11:10AM (#28694728)
I tried using PyPy several times, but I always run into problems due to the C extension and other libraries I use. Also, last time I checked it wasn't very up-to-date with respect to the mainstream Python version.