- cross-posted to:
- python@programming.dev
- hackernews@derp.foo
- cross-posted to:
- python@programming.dev
- hackernews@derp.foo
Meta is dedicating 3 engineers to get the nogil patches into cpython. There are some other companies stepping up as well. This is huge this is the closest we have ever been to solving the issue of the GIL.
a simple explanation but not 100% correct is that even if your code is made to run in parallel using threads, it will never use more than 1 core in your computer.
getting rid of the GIL will let it use all the cores in the processor.
the multiprocessing module “solved” this problem by forking processes instead of threads, but it’s not ideal for a lot of workloads.