Profile Guided Optimization (PGO)

David A. Wheeler dwheeler at dwheeler.com
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:
https://github.com/bmwiedemann/theunreproduciblepackage/tree/master/pgo

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?

Thanks.

--- David A. Wheeler



More information about the rb-general mailing list