[Qgis-developer] python multiprocessing module in a processing toolbox script

Sergio Vignali vignalisergio30 at gmail.com
Sun Jul 17 09:48:04 PDT 2016


Dear all,

I have been working on how to speed up some raster processing  that require
long time when performed on large files. I wrote a script that use the
multiprocessing python module and it works well if I use PyCharm, reducing
more than the half the time necessary to process the image with my 4-cores
processor. I can see all my cores max out in the System Monitor and I don't
get any kind of error.

The problem comes up if I try to execute the same script as a Processing
Toolbox script, it never ends and after long time qgis crashes.. That's a
pity because it would be great to have and use it directly inside qgis!

Is there a way to fix this problem or another way to perform the same?

All the best

-- 
Sergio Vignali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160717/279c9c33/attachment.html>


More information about the Qgis-developer mailing list