Profile Guided Optimization (PGO)

David A. Wheeler dwheeler at
Tue Jun 21 17:11:36 UTC 2022

Profile Guided Optimization (PGO) can make it challenging to generate reproducible builds.
Some options are listed here:

It'd be great if other options existed.

One idea: What about having the profile built ahead-of-time, and recorded in the source tree?
That probably has to be recorded separately for different architectures.
It might not be too bad to include it in the "source code" as long as it cannot affect
the actual semantics (only the performance). That is obviously annoying, but it's
also annoying to lose a nontrivial amount of performance?

Thoughts? Does anyone have any better ideas for making PGO reproducible?


--- David A. Wheeler

More information about the rb-general mailing list