Repository navigation
Conversation
solnic
force-pushed
the
ci/optimize-source-built-rubies
branch
from
November 25, 2026 11:56
3881cd5 to
6e38384
Compare
solnic
force-pushed
the
ci/optimize-source-built-rubies
branch
from
November 25, 2026 12:25
6a3a2f8 to
6e38384
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.
Ruby 2.7, 3.0 and 3.1 have no precompiled build, so CI compiles them from source.
.mise.ci.tomlsetRUBY_CFLAGSto an empty string on x86, which replaced Ruby's default-O3. Those Rubies were built withCFLAGS=" -fPIC", effectively-O0, and ran a CPU benchmark about 6.5x slower than the precompiled 3.2+ (3.07s vs 0.47s).This sets
-O3explicitly inRUBY_CFLAGS.On sentry-rails, "Run specs" on those Rubies drops 2–3x compared with master. For example, 3.0/7.1 goes from 358s to 125s, and 3.1/7.2 from 781s to 447s.
The mise cache key covers
.mise*.toml, so the first run recompiles the three Rubies once (about 9 min insetup-mise).