[GRASS-dev] multiprocessing problem
Luca Delucchi
lucadeluge at gmail.com
Thu Apr 7 22:32:37 PDT 2022
Hi devs,
I wrote an addons to calculate Rao's Q diversity index [0], I would
like to speed it up using multiprocessing but with multiprocessing it
took 2/3 times longer than a single process. Could someone look at the
code and explain to me what I'm doing wrong?
A colleague of mine suggested using cython with prange function [1]
but I would avoid it since I need to study it and how to compile it in
GRASS and I have no time to spend on it.
thanks a lot
Luca
[0] https://github.com/lucadelu/grass-addons/tree/raoq/src/raster/r.raoq.area
[1] https://cython.readthedocs.io/en/latest/src/userguide/parallelism.html
--
ciao
Luca
www.lucadelu.org
More information about the grass-dev
mailing list