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

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?


Need Your Help

Qt VS2010 Debug Error

c++ visual-studio-2010 qt debugging

I am using Qt 1.2 add-in and vs 2010, i installed everything and i can create a QT application project but when i try to run my created project, the system message says that qunable the start progr...

Using Node.js w/ Cheerio to pre-process HTML

jquery node.js cheerio

I have the unfortunate task of converting a significant amount of HTML pages over to a new template. I will need to port the and place it into the new template's , plus some additional DOM

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.