<div dir="ltr">So I've managed to roughly reproduce similar results on Linux building LLVM w/ libc++ 3.5 and libc++ ToT.<div>On my machine I saw build times of 700 vs 800 seconds respectively (to build a small portion of LLVM).</div><div><br></div><div>Initially I though the cause may have been the Lib C header wrappers, but taking them out had no effect.</div><div>I'll keep looking...</div><div><br></div><div>/Eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 10:59 AM, Eric Fiselier <span dir="ltr"><<a href="mailto:eric@efcs.ca" target="_blank">eric@efcs.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For my sanity, and because this has come up before more than once, I need to ask:<br><br>If you're testing on OS X, can you confirm that the old clang setup isn't defaulting to libstdc++ 4.2?<div>This happens often --- and accidentally -- with older platforms or with older Clang toolsets.</div><div><br></div><div>Other users have reported a ~20% compile time slowdown after switching from libstdc++ 4.2 to libc++.</div><div><br></div><div>That being said, I'm going to try and get some builds set up to attempt to reproduce this.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>/Eric</div><div><div><br></div></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 4:29 PM, chen hsu <span dir="ltr"><<a href="mailto:chenxuz@outlook.com" target="_blank">chenxuz@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-569350069902103164m_-2452360663891480980divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>merging thread.. I have precompilation configuration for my project, and by enabling it, the build time is 100 minutes. but since precompilation introduces some other issues (cmake doesn't support precompilation so we have to use some custom script, which
 is not perfect), we still prefer to building the code without precompilation, if any other option is available.</p>
<p><br>
</p>
<p>I don't have a test case yet, but our use of c++ stl is quite common, vector, wstring, map, set, etc. wstring is used a lot since the code was ported from Windows to linux. On windows side we use msbuild, which only takes 50 minutes to build the whole project.
 Of course this is not comparable due to compiler difference, but we are targeting to make Linux build time to be close to that of Windows. </p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-569350069902103164m_-2452360663891480980divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Eric Fiselier <<a href="mailto:eric@efcs.ca" target="_blank">eric@efcs.ca</a>><br>
<b>Sent:</b> Saturday, November 18, 2017 8:20:37 PM<br>
<b>To:</b> Dimitry Andric<br>
<b>Cc:</b> chen hsu; cfe-dev<br>
<b>Subject:</b> Re: [cfe-dev] [libc++] much longer build time of my project using libc++ 5.0 vs 3.5.2</font>
<div> </div>
</div><div><div class="m_-569350069902103164h5">
<div>
<div dir="ltr"><br>
<div class="m_-569350069902103164m_-2452360663891480980x_gmail_extra"><br>
<div class="m_-569350069902103164m_-2452360663891480980x_gmail_quote">On Sat, Nov 18, 2017 at 6:15 AM, Dimitry Andric via cfe-dev
<span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br>
<blockquote class="m_-569350069902103164m_-2452360663891480980x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div>Do you have some sort of test case?  For example, a standalone .cpp file which includes a bunch of libc++ headers, and which now takes much more time to compile?</div>
<div><br>
</div>
<div>It would be interesting to see where this regressed, if it did.</div>
</div>
</blockquote>
<div><br>
</div>
<div>+1. I would love to see a test case here. </div>
<div> </div>
<blockquote class="m_-569350069902103164m_-2452360663891480980x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div><br>
</div>
<div>-Dimitry</div>
<br>
<div>
<blockquote type="cite"><span>
<div>On 17 Nov 2017, at 21:04, chen hsu via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:</div>
<br class="m_-569350069902103164m_-2452360663891480980x_m_-8327333689162042490Apple-interchange-newline">
</span>
<div><span>
<div id="m_-569350069902103164m_-2452360663891480980x_m_-8327333689162042490divtagdefaultwrapper" dir="ltr" style="font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif">
Hi, my project has been using libc++/c++abi 3.5.2 for two years, and recently I am upgrading it to libc++/c++abi 5.0, only to find that the build time for our project increased dramatically, from 100 minutes to 160 minutes on a 6-core intel-CPU, same situation
 for both debug and release build. The compiler is clang 5.0. The comparison is pretty fair - same machine and compiler, same codebase, the only difference is the C++ headers. Is there a way to improve? It's kind of blocker for our adoption of libc++/c++abi
 5.0, as it takes too long for our developers to build. 
<div><br>
</div>
<div>Thanks a lot. 
<div><br>
</div>
</div>
</div>
</span><span><span style="font-family:HelveticaNeue;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">______________________________<wbr>_________________</span><br style="font-family:HelveticaNeue;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:HelveticaNeue;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">cfe-dev
 mailing list</span><br style="font-family:HelveticaNeue;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="mailto:cfe-dev@lists.llvm.org" style="font-family:HelveticaNeue;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">cfe-dev@lists.llvm.org</a><br style="font-family:HelveticaNeue;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" style="font-family:HelveticaNeue;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a></span></div>
</blockquote>
</div>
<br>
</div>
<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></div>

</blockquote></div><br></div>
</div></div></blockquote></div><br></div>