On Mon, 26 Oct 2026 22:23:12 GMT, Benjamin Peterson <[email protected]> 
wrote:

> Add `-fpch-instantiate-templates` to the clang precompiled header generation 
> command.
> 
> Testing with `make hotspot`, I observe a 40% reduction in build CPU time for 
> a release build. On a 56 core machine, this reduces the wall time of the same 
> command by 25% (45.94s -> 34.5s).
> 
> 
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

What platforms did you test this on?

>From what I read there can be some issues using PCH template instantiation, so 
>we need to know this will generally be a good thing everyone.

Currently running this through our CI for tiers 1-5, but I don't think we are a 
heavy user of Clang, so this may be more of an issue for other distros.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/33576#issuecomment-6430889454

Reply via email to