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
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to