<div dir="ltr">Hi,<div class="gmail_extra">
<br><div class="gmail_quote">On Tue, Sep 29, 2015 at 3:10 PM, Larry Shaffer <span dir="ltr"><<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div class="gmail_extra"><div><div><br></div></div><div class="gmail_quote"><span class="">On Tue, Sep 29, 2015 at 2:59 PM, Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><p dir="ltr"><br>
On 30 Sep 2015 05:10, "Jürgen E." <<a href="mailto:jef@norbit.de" target="_blank">jef@norbit.de</a>> wrote:<br>
><br>
> Hi Larry,<br>
><br>
> On Tue, 29. Sep 2015 at 11:22:32 -0600, Larry Shaffer wrote:<br>
> > qgsexpression_texts.cpp is 144 KB on my two build boxes.<br>
> > Here's the generated file:<br>
> > <a href="https://gist.github.com/dakcarto/d55927def236e269295a" target="_blank">https://gist.github.com/dakcarto/d55927def236e269295a</a><br>
> ><br>
> > The file is the same on both Mac 10.7 and 10.9 boxes.<br>
> ><br>
> > qgsexpression.cpp is ~128 KB on my two build boxes.<br>
><br>
> Odd, qgsexpression_texts.cpp takes 22s here and qgsexpression.cpp 43s (gcc<br>
> 5.2.1 on Linux). But both brings a "note: variable tracking size limit<br>
> exceeded with -fvar-tracking-assignments, retrying without".<br>
><br>
> I didn't notice any significant longer compile times on Windows either.<br>
><br>
> No clue why qgsexpression_texts.cpp takes so much longer on OSX.</p>
</span><p dir="ltr">It's also fine on the Travis OSX builds. Maybe something local with your build environment?</p></blockquote></span></div></div></div></blockquote><div>Maybe, maybe not. It appears the file takes forever to optimize for the CMAKE_BUILD_TYPE=RelWithDebInfo or Release, which on my Clang setup defaults to:</div><div><br></div><div><div>CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG</div><div>CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG<br></div></div><div><br></div><div>If I set the optimization to -O1, -O0 or none, then the compiling of the file drops to mere seconds, even on my older 'nightly build' Mac.</div><div><br></div><div>Here is what I propose for a CMake adjustment on the compile flags for just that file:</div><div><br class=""><a href="https://gist.github.com/dakcarto/0cc443708487d205254a">https://gist.github.com/dakcarto/0cc443708487d205254a</a></div><div><br></div><div>Since I am confessedly a absolute noob when it comes to compiling optimizations, I would appreciate an opinion on that diff. Also, if you usually do Debug builds (no optimization), can either of you try compiling with CMAKE_BUILD_TYPE=Release or RelWithDebInfo to see if the slow compiling shows up for you?</div><div><br></div><div>The Travis build does not have CMAKE_BUILD_TYPE set, i.e. is None or just CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used, which combined are "-Wno-deprecated-declarations". So no optimization there, so no apparent issue.</div><div><br></div><div>Regards,</div><div><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Thanks to you both for checking into this. Will review my setups here.</div><div><br></div><div>Regards,</div><span class=""><div><br></div><div>Larry Shaffer</div><div><div>Dakota Cartography<br>Black Hills, South Dakota</div></div><div><br></div></span><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><font color="#888888">
<p dir="ltr">Nyall</p>
</font></span><p dir="ltr"><span>><br>
><br>
> Jürgen<br>
><br>
> --<br>
> Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31<br>
> Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50<br>
> Software Engineer D-26506 Norden <a href="http://www.norbit.de" target="_blank">http://www.norbit.de</a><br>
> QGIS release manager (PSC) Germany IRC: jef on FreeNode<br>
><br></span><span>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</span></p>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>