<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Le mer. 14 nov. 2018 à 12:06, Poughon Victor <<a href="mailto:Victor.Poughon@cnes.fr">Victor.Poughon@cnes.fr</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="FR">
<div class="gmail-m_417863337139505510WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">Thanks for the replies<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">You can see configure times on our dashboard (switch to advanced view):
<a href="https://dash.orfeo-toolbox.org/index.php?project=OTB" target="_blank">https://dash.orfeo-toolbox.org/index.php?project=OTB</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">It ranges from 1-3min. There's even one windows machine that's at 4m30s.</span></p></div></div></blockquote><div><br></div><div>Somes windows system are known to be slow on many files accesses.</div><div>However on this particular machine (<a href="https://dash.orfeo-toolbox.org/buildSummary.php?buildid=342008">https://dash.orfeo-toolbox.org/buildSummary.php?buildid=342008</a> I guess) you already seem</div><div>to be using NInja + MSVC. so many small files access to ?makefiles? should not be the culprit. </div><div><br></div><div>That said whatever the system your build and test time seems to dominate the overall time (in the CI).</div><div><br></div><div>I have had great speed-up experience using CMake+ninja+ccache  for our build in CI. We did go from 1 hour down to less than 10min.</div><div>We only have various linux build (no Windows) it is really a big time savior combo.</div><div><br></div><div>We even share the compil' cache between the CI and the developers. So everybody is feeding compile cache and takes benefits from others including CI.</div><div><br></div><div>You seem to be using that as well here:</div><div><a href="https://dash.orfeo-toolbox.org/buildSummary.php?buildid=341993">https://dash.orfeo-toolbox.org/buildSummary.php?buildid=341993</a><br></div><div>and you get less than 5min build time which corroborate my suggestion.</div><div><br></div><div>The same machine build with clang: <a href="https://dash.orfeo-toolbox.org/buildSummary.php?buildid=342033">https://dash.orfeo-toolbox.org/buildSummary.php?buildid=342033</a> is lasting 30min+</div><div>and is not using ccache.</div><div> <span style="font-family:Calibri,sans-serif;font-size:11pt"> </span><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="FR"><div class="gmail-m_417863337139505510WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">Thanks for the tip about Ninja generator, it's indeed much faster. But switching the entire dev team + CI servers from make to ninja
 is not really an option for us right now because of a bug in ninja that affects our SuperBuild configuration (see here if you're interested in the details:
<a href="https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/issues/1625" target="_blank">https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/issues/1625</a>)</span></p></div></div></blockquote><div><br></div><div>I see.</div><div>Not using ninja in the Superbuild case does not mean you cannot use it in other cases, right?</div><div>May be the one-size fits all is a little too much to ask at this point? My opinion though.</div><div>Did you report the issue upstream (ninja or cmake)?</div><div><br></div><div>I was impressed in the past by the amount of tests orfeo is doing, I'm still are !!</div><div>Are you running those tests in parallel (with ctest --parallel) ? It can be a time savior as well is the running machine has a fair amount of cores and memory.</div><div><br></div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div></div></div></div></div>