perone / Pyevolve

Pyevolve
http://pyevolve.sourceforge.net/wordpress/
313 stars 107 forks source link

Add an optional max_processes parameter to setMultiProcessing() #58

Closed bje- closed 10 years ago

bje- commented 10 years ago

This patch adds an optional parameter to setMultiProcessing() to control the number of worker processes in the pool. Defaults to None, which leads to one worker for every CPU available (as the Python multiprocessing module does). On some multi-user systems, it is not polite to spawn that many workers.

perone commented 10 years ago

I used a tuple to store the data and I really regret that hehe, I'll merge this change but in near future I'll refactor it to store the parameters in different attributes or something like that, great thanks for the pull request !

bje- commented 10 years ago

Thanks. I see that there is another pull request from 3 years ago that does the same thing. That request can be dropped now:

https://github.com/perone/Pyevolve/pull/16

Cheers, Ben