boulder: Enable cached incremental LTO support for GNU & LLVM toolchains - #870
Open
joebonrichie wants to merge 1 commit into
Open
boulder: Enable cached incremental LTO support for GNU & LLVM toolchains#870joebonrichie wants to merge 1 commit into
joebonrichie wants to merge 1 commit into
Conversation
joebonrichie
marked this pull request as ready for review
September 1, 2026 19:47
Cache LTO artefacts by default when ccache is enabled. Note that LLVM's fat LTO is not supported. This can compliment ccache/sccache. Benchmarks (ccache disabled): zlib-ng (llvm, thin-lto): Uncached (warm first run) : 3.21s Cached (second run) : 2.51s emacs (gcc, lto): Uncached (warm first run) : 4m04.47s Cached (second run) : 3m45.09s starship (rust, thin-lto): no LTO cache, no sccache : 2m37.31s LTO uncached, sccache disabled : 2m36.88s LTO cached, sccache disabled : 1m58.47s LTO cached, sccache uncached : 2m11.85s LTO cached, sccache cached: : 12.70s no LTO cache, sccache uncached : 3m03.27s no LTO cache, sscache cached : 1m02.44s
joebonrichie
force-pushed
the
boulder-ltocache
branch
from
September 2, 2026 17:12
6f9dc6a to
09a4017
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cache LTO artefacts by default when ccache is enabled. Note that LLVM's fat LTO is not supported. This can compliment ccache/sccache.
Benchmarks
(sccache enabled):
starship (rust, thin-lto):
no LTO cache, no sccache : 2m37.31s
LTO uncached, sccache disabled : 2m36.88s
LTO cached, sccache disabled : 1m58.47s
LTO cached, sccache uncached : 2m11.85s
LTO cached, sccache cached: : 12.70s
no LTO cache, sccache uncached : 3m03.27s
no LTO cache, sscache cached : 1m02.44s
(ccache disabled):
zlib-ng (llvm, thin-lto):
Uncached (warm first run) : 3.21s
Cached (second run) : 2.51s
emacs (gcc, lto):
Uncached (warm first run) : 4m04.47s
Cached (second run) : 3m45.09s