Re: [QGIS-Developer] Multiprocessing QGIS

2021-03-30 Thread Sebastian M. Ernst
Hi all, Am 29.03.21 um 01:17 schrieb Nyall Dawson: > [...] So it's quite straightforward to use > multiprocessing in PyQGIS via the Qt methods and do things like > calculating intersections for different objects across multiple > threads at once without having to worry about the GIL at all... I

Re: [QGIS-Developer] Multiprocessing QGIS

2021-03-28 Thread Pedro Camargo
.osgeo.org > > > > > > When replying, please edit your Subject line so it is more specific > > > than "Re: Contents of QGIS-Developer digest..." > > > > > > > > > Today's Topics: > > > > > >1. Re: Multiprocessing QGIS (Florian El Ahdab) &g

Re: [QGIS-Developer] Multiprocessing QGIS

2021-03-28 Thread Nyall Dawson
gt; than "Re: Contents of QGIS-Developer digest..." > > > > > > Today's Topics: > > > >1. Re: Multiprocessing QGIS (Florian El Ahdab) > > > > > > -- > > > > Message: 1 > > Date: Sun, 28 Mar 2021

Re: [QGIS-Developer] Multiprocessing QGIS

2021-03-28 Thread Pedro Camargo
s: > >1. Re: Multiprocessing QGIS (Florian El Ahdab) > > > -- > > Message: 1 > Date: Sun, 28 Mar 2021 16:48:12 +0200 > From: Florian El Ahdab > To: Joao Folgado > Cc: David Marteau , qgis-developer > >

Re: [QGIS-Developer] Multiprocessing QGIS

2021-03-28 Thread Florian El Ahdab
Hi. I am posting my reply again because I missed the qgis-developer mail list first... It is indeed possible to achieve multiprocessing in QGIS. But you should rely on Qt multi thread mechanisms rather than on the python multiprocessing module. Qgis is written in C++, based on the Qt library.

Re: [QGIS-Developer] Multiprocessing QGIS

2021-03-27 Thread Joao Folgado
Hi guys, First of all thank you but, David Marteua and Sebastian Ernst, for the answer. So is impossible to use multiprocessing in Qgis plugin? This is a enormous limitations because Qgis have a lot of data that needs to be evaluated in same cases. Nowadays the cpu have 5,7, 9 cores and we can

Re: [QGIS-Developer] Multiprocessing QGIS

2021-03-26 Thread David Marteau
I am not entirely sure what QGIS' (intended) behavior is in a case like this. From the top of my head, having read the relevant portion of its source code, I'd expect at least a second application window likely followed by non-deterministic behavior (again, depending on the use-case, likely

Re: [QGIS-Developer] Multiprocessing QGIS

2021-03-23 Thread Sebastian M. Ernst
Hi João, all, really interesting question. > however when i run the plugin a new instance of application is open > and give me an error. I assume that you are using `multiprocessing` [1] from Python's standard library. Its default behavior is to use process-based parallelism (as the title in

[QGIS-Developer] Multiprocessing QGIS

2021-03-23 Thread Joao Folgado
Hi everyone, I had created a plugin for Qgis and I trying to optimize it. So i use in my code the library python that have Queue whit multiprocessing however when i run the plugin a new instance of application is open and give me an error. I had early use this type of multiprocessing before in

Re: [QGIS-Developer] Multiprocessing qgis console

2019-12-11 Thread Shane Carey
Ok cool - thanks On Céad 11 Noll 2019 at 09:07, Luigi Pirelli wrote: > Not yet... but consider that GUI works in the main thread => if you need > to post messages in the console you should need to create producer/consumer > queues (see use of Queue module). > I would suggest to simplify

Re: [QGIS-Developer] Multiprocessing qgis console

2019-12-11 Thread Luigi Pirelli
Not yet... but consider that GUI works in the main thread => if you need to post messages in the console you should need to create producer/consumer queues (see use of Queue module). I would suggest to simplify everything using QgsTask. cheers Luigi Pirelli

[QGIS-Developer] Multiprocessing qgis console

2019-12-10 Thread Shane Carey
Hi, Has anyone to successfully setup multiprocessing through the the qgis console? Thanks -- Le gach dea ghui, *Shane Carey* *GIS and Data Solutions Consultant* ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: