A wrapper on top of Python's built-in map function which first splits the input array into n parts, then spawns n processes in order to map asynchronously.
Instead of:
result = map(f, list)
Use:
from mapredoopy import mappy
result = mappy(f, list, 4) #spawns four processes
Why did I write this code? For fun and practice.
- Make an async implementation of reduce
- Use (key, value) pairs as output