Repository navigation
Add a release-fast profile for local builds and pull request CI - #10
Merged
Merged
Conversation
Fat LTO with one codegen unit runs on a single thread (1 min 43 s after each commit on a 16-core CPU); thin LTO with 16 units takes 22 s for an exe about 12 % larger. build.ps1 build and pull request CI (release -Fast) use it; tags and main's CI keep the published fat LTO profile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
geeooff
enabled auto-merge
November 23, 2026 15:24
Pull requests restore main's cache on an exact key match and never save their own, so their release-fast dependencies were rebuilt every time. Main now builds them too after the release build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
[profile.release-fast], which inheritsreleasewith thin LTO and 16 codegen units.build.ps1 builduses it.build.ps1 release -Fastuses it for the packaging checks.release -Fast. Pushes tomainkeep the published fat LTOreleaseprofile, so the profile a tag uses is still built after every merge.release.ymlis unchanged.Why
Fat LTO with one codegen unit merges the whole program and its dependencies into one LLVM module, which is optimized on one thread. Measured on a Ryzen 9 9950X3D (rustc 1.98, after a commit, dependencies cached):
release(fat, 1 CGU)release-fast(thin, 16 CGU)rust-lldsaves under a second. sccache cannot cache the bin crate. The parallel frontend is nightly-only and would not speed up LLVM anyway. The maintainer wants published releases fully optimized, so only checks userelease-fast.Checked
.\scripts\build.ps1 buildand.\scripts\build.ps1 release -Fastpass locally (92 s end to end, of which 23 s is the optimized build).-Fastpackaging prints that its exe is a check, not something to publish.-Fastis refused outside thereleasetask.🤖 Generated with Claude Code