<div dir="ltr">Judging by the lack of responses here, it feels like there aren't a lot of active stakeholders in clang's PCH behavior.<div><div><br></div><div>It seems pretty clear that there is a performance use case for instantiating templates at the end of the PCH.</div></div><div><br></div><div>I think your plan to land this under a flag sounds good, and then if other users care we can discuss changing the default later.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 13, 2020 at 9:27 AM Alexandre Ganea via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<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="EN-CA">
<div class="gmail-m_1167532339018348589WordSection1">
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">There’s a pending review, <span lang="FR-CA"><a href="https://reviews.llvm.org/D69585" target="_blank"><span lang="EN-CA">https://reviews.llvm.org/D69585</span></a></span>, which greatly speeds up building of codebases using PCH + heavy use of templates.<u></u><u></u></p>
<p class="MsoNormal">Previously, template instantiations would only happen at the end of the TU which includes the PCH. I’ve seen codebases with 5+ sec spent in each TU because of this.<u></u><u></u></p>
<p class="MsoNormal">With this patch, instantiations are allowed to happen at the end of the PCH, which shaves a few seconds in each TU including the PCH. This behavior is behind a new flag.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">It would be much appreciated if anybody knowledgeable of the subject could take a look at this please?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Many thanks in advance!<u></u><u></u></p>
<p class="MsoNormal">Alex.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<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="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>