Skip to content

rylans/MapRedoopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MapRedoopy

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.

Usage

Instead of:

result = map(f, list)

Use:

from mapredoopy import mappy
result = mappy(f, list, 4) #spawns four processes

Purpose

Why did I write this code? For fun and practice.

Todo list

  • Make an async implementation of reduce
  • Use (key, value) pairs as output

About

Multi-threaded map function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages