<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Thanks for the excellent feedback and hints. First of all, my QGIS qork is mainly with vector layers. Therefore unfortunately the OpenCL capabilities don’t help. To my understanding
 this is mainly for accelerating heavy raster calculations. Secondly and as already mentioned, my most urgent need is to accelerate the execution of GRASS v.net.steiner and v.clean as part of my toolbox processing scripts for a number of given route networks
 in separate areas.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">However, on you feedback I searched a bit and found, that obviously  since QGIS3 some parallelization seems to be supported. In the developers coockbook here:
<a href="https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/tasks.html#task-from-a-processing-algorithm">
https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/tasks.html#task-from-a-processing-algorithm</a>  I found some promising info including the link to here:
<a href="https://www.opengis.ch/2018/06/22/threads-in-pyqgis3/">https://www.opengis.ch/2018/06/22/threads-in-pyqgis3/</a>. I will spend some time to modify my loop through my separate network areas to try, to start python jobs from inside the loop, which are
 then collected at the end.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Thanks again for your good ideas and have a good weekend<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Br<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Wolfgang<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">-------------</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">You can also activate the OpenCL option.  Some algorithms have been optimized (I believe it’s still experimental).  If you have a compatible  OpenCL video card, it will run these on the card.  If not, it can probably
 run on compatible CPUs. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><a href="https://www.itopen.it/opencl-acceleration-now-available-in-qgis/"><span lang="EN-US">https://www.itopen.it/opencl-acceleration-now-available-in-qgis/</span></a><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">I find it’s worth testing equivalent algorithms from different sources in the Processing plugin is worth the trouble.  Some Saga algorithm are faster.  Merging vector lines, for example, could
 take a long time using the QGIS algorithm (talking hours) and was much faster (a few minutes) using the Saga version of the tool.  I also found that some algorithms are much faster to handle when the files are not open beforehand in the layer manager.  For
 example, the Processing plugin can sometimes grab the needed files directly on the hard drive rather than picking one that is already open in the layer manager. Looking at the processor, memory and disk usage can also help identify bottle necks in the hardware.
  <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Nicolas Cadieux<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><a href="https://gitlab.com/njacadieux"><span lang="EN-US">https://gitlab.com/njacadieux</span></a><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Le 16 avr. 2021 à 03:34, Francesco Pelullo <</span><a href="mailto:f.pelullo@gmail.com"><span lang="EN-US">f.pelullo@gmail.com</span></a><span lang="EN-US">> a écrit :<o:p></o:p></span></p>
</blockquote>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Il ven 16 apr 2021, 02:56 Stewart Holt <<a href="mailto:stewartbholt@gmail.com">stewartbholt@gmail.com</a>> ha scritto:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"> <span lang="EN-US">Parallelizing script execution is complex and I doubt that it is currently done in QGIS.<o:p></o:p></span></p>
</div>
</blockquote>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">That's true.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">In Settings / Options / Rendering / there's a checkbox for render layers in parallel using as many CPU cores you want, but It Is enabled by default so I suppose that there are no others settings that could make QGIS more
 aggressive in CPU usage.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Regards<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</div>
</blockquote>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US">_______________________________________________<br>
Qgis-user mailing list<br>
</span><a href="mailto:Qgis-user@lists.osgeo.org"><span lang="EN-US">Qgis-user@lists.osgeo.org</span></a><span lang="EN-US"><br>
List info: </span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-user"><span lang="EN-US">https://lists.osgeo.org/mailman/listinfo/qgis-user</span></a><span lang="EN-US"><br>
Unsubscribe: </span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-user"><span lang="EN-US">https://lists.osgeo.org/mailman/listinfo/qgis-user</span></a><span lang="EN-US"><o:p></o:p></span></p>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>