this post was submitted on 06 Aug 2023
20 points (100.0% liked)

Python

3228 readers
1 users here now

News and discussions about the programming language Python


founded 5 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] anonono 3 points 1 year ago

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.