Search code examples
pythonrpandasmulticore

Python equivalent of R's mclapply()


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


Solution

  • 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?