[cfe-dev] Improving PCH build times by instantiating templates in the PCH

Zachary Turner via cfe-dev cfe-dev at lists.llvm.org
Tue Jan 14 12:34:20 PST 2020


FWIW, I would really like to see this patch move forward as it has the
potential to speed up precompiled headers quite significantly.  Currently
our internal builds using clang-cl are about 3x slower than MSVC using PCH,
and it's likely in large part due to this exact issue.

On Mon, Jan 13, 2020 at 2:11 PM Lubos Lunak via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

>
>  Hello,
>
>  would there be somebody who could review https://reviews.llvm.org/D69585
> so
> that it can make it into 10.0? I can get significant build time reduction
> with the patch when using PCHs (up to 20-30% build time,
>
> http://llunak.blogspot.com/2019/11/clang-precompiled-headers-and-improving.html),
>
> the patch is fairly simple, I've been using it locally for several months
> by
> now, and it should be pretty safe given that the change is in effect only
> if
> opted in.
>
>  Thank you.
>
> --
>  Lubos Lunak
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200114/92e2f523/attachment.html>


More information about the cfe-dev mailing list