[QGIS-Developer] Qgis task slows down main Qgis process

MANZER Ali Ali.Iman.Manzer at ulb.be
Fri Jul 5 07:30:42 PDT 2024


Hello,
I am currently developing a plugin with PyQGIS and have a question regarding QGIS Task. The documentation states that the run method is executed in parallel and is developed in C++. However, from my experience, I notice that whenever a large computation (with NumPy in my case) is being performed inside a QGIS task, the performance of the code running in the main QGIS thread is significantly slowed down.
I have no computation in the method that runs after the thread. Is this slowdown due to the Python GIL?
Sincerely,
Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240705/69dc4dc1/attachment.htm>


More information about the QGIS-Developer mailing list