Multi Processing Map For Python

July 06, 2007

Reading time ~1 minute

I think that Python should use multi-processing and/or multi-threading to take advantage of as many opportunities for parallel execution as possible. To this end, I’ve written a drop-in replacement for map() that runs across as many processes as requested. It should be otherwise identical in every way the built-in version (and if it’s not please let me know!).

I also wrote a version based on Parallel Python that is a lot simpler but not quite identical to the original. In particular, it returns a generator instead of a list of values so that program execution doesn’t block until the results are fetched.

Drop me a line if you find this interesting or useful or just plain dumb.

Download: forkmap.py

To Sell A Car

In the process of moving to another state, we decided to sell my car to some friends. This turned out to be much harder than anticipated....… Continue reading

Applecareless

Published on May 04, 2012

Mesothelioma Plavix And Yaz Oh My

Published on March 15, 2012