optunity.parallel module

optunity.parallel.pmap(f, *args, **kwargs)[source]

Parallel map using multiprocessing.

Parameters:
  • f – the callable
  • args – arguments to f, as iterables
Returns:

a list containing the results

Warning

This function will not work in IPython: https://github.com/claesenm/optunity/issues/8.

Warning

Python’s multiprocessing library is incompatible with Jython.

class optunity.parallel.Future(func, *param)[source]
Wrapper(func, param)[source]
join()[source]
optunity.parallel.create_pmap(number_of_processes)[source]