by halayli · 12y ago · 0 comments
Often times threads need to update shared dict/list etc... With multiprocessing this cannot be done. You can use a Queue for this but it's horribly inefficient.
Generally speaking if you need performance and Python is not meeting the requirements then you are better off using another language.
I'm unsure of the performance ramifications vs using concurrent.futures
Generally I would use C++ or (gasp!) Fortran with either MPI or CUDA for these sorts of tasks if performance was the most critical factor.
I'm excited by the Julia language though!
So document that this is not just a problem with some program you wrote, but multiprocessing itself.