.. _f-fastparallelfctmr: module ``fctmr.fast_parallel_fctmr`` ==================================== Short summary +++++++++++++ module ``sparkouille.fctmr.fast_parallel_fctmr`` Simple parallelization of *mapper* and *reducer* based on :epkg:`numba`. :epkg:`Python` does not easily allow to parallelize functions as the :epkg:`GIL` blocks most of the tentatives by imposing a single tunnel for all allocations, creation of :epkg:`python` objects. The language implements it but in practice it is not. This file is just a tentative to use :epkg:`numba` to parallelize a mapper but the number of round trip between :epkg:`python` and compiled :epkg:`C` makes it difficult to write something generic. :githublink:`%|py|14` Functions +++++++++ +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +===========================================================================================+=============================================================================================================================================================================+ | :func:`create_array_numba ` | Creates an array of size nb knowing its signature. | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`fast_parallel_mapper ` | Parallelizes a mapper based on :epkg:`numba` and more specifically `Automatic parallelization with @jit `_. ... | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: sparkouille.fctmr.fast_parallel_fctmr :members: :special-members: __init__ :show-inheritance: