this post was submitted on 06 Aug 2023
23 points (100.0% liked)
Python
3222 readers
1 users here now
News and discussions about the programming language Python
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.