Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python equivalent of R's mclapply() [duplicate]

The R package multicore has a function mclapply() which applies a specified function over a list of things and takes advantage of multiple cores. It's easy to use and results in big speed boosts.

Is there a Python equivalent? Thanks

like image 515
N. McA. Avatar asked May 02 '13 13:05

N. McA.


1 Answers

This functionality is available from the map method in multiprocessing.Pool()

See this answer for more details: Is there a simple process-based parallel map for python?

like image 129
N. McA. Avatar answered Nov 17 '22 09:11

N. McA.