4 ms·
That's a nice hack when you have only a few elements in the iterable, but Futures are pretty heavyweight, so this is unfortunately a lot slower than multiproces
by lqdc13 10y ago
That's a nice hack when you have only a few elements in the iterable, but Futures are pretty heavyweight, so this is unfortunately a lot slower than multiprocessing.Pool when you have many elements.
The other thing is that this won't work on Windows.
Efficient multiprocessing always a pain in Python in my experience.