Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And then there is the GIL. So if you want to squeeze more performance out of your CPU bound task. You need to use the multiprocess module, because Python threading does not work well for CPU bound tasks.


Since you are talking about CPU-bound tasks, it is relevant that numpy array operations release the GIL.


True, you would have to write or use a Python extension written in C or C++.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: