Separate Bundler download, installation, and metadata concurrency - #9777
Open
joshuay03 wants to merge 1 commit into
Open
Separate Bundler download, installation, and metadata concurrency#9777joshuay03 wants to merge 1 commit into
joshuay03 wants to merge 1 commit into
Conversation
joshuay03
force-pushed
the
separate-download-jobs
branch
2 times, most recently
from
August 16, 2026 23:17
58b24f1 to
1f928f3
Compare
joshuay03
force-pushed
the
separate-download-jobs
branch
3 times, most recently
from
August 16, 2026 23:26
78245cf to
9da6fe0
Compare
joshuay03
force-pushed
the
separate-download-jobs
branch
3 times, most recently
from
August 17, 2026 03:11
71f2793 to
14daf5c
Compare
joshuay03
force-pushed
the
separate-download-jobs
branch
2 times, most recently
from
August 17, 2026 03:17
e35b8c0 to
c5d6166
Compare
joshuay03
force-pushed
the
separate-download-jobs
branch
from
August 17, 2026 03:45
c5d6166 to
5605a3a
Compare
joshuay03
force-pushed
the
separate-download-jobs
branch
from
August 17, 2026 04:14
5605a3a to
36d082b
Compare
joshuay03
marked this pull request as ready for review
August 17, 2026 04:42
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 was the end-user or developer problem that led to this PR?
Bundler sizes compact-index metadata concurrency from processor count and uses
BUNDLE_JOBSfor both CPU-heavy installation and network-heavy gem downloads.What is your fix for the problem, implemented in this PR?
Add
BUNDLE_DOWNLOAD_JOBSandBUNDLE_METADATA_JOBS, and makeBUNDLE_JOBSinstallation-only. Downloads default to 3× installation jobs, capped at 8; metadata defaults to download jobs. Parallel default-gem lookups are serialized so download workers do not race while refreshing the shared compact-index cache.This lets downloads overlap installation without consuming its worker slots, while keeping I/O concurrency bounded on large machines. Across five alternating cold-cache Docker builds per variant, median install time improved by 8.5% (66.0s versus 72.1s) and mean install time improved by 9.2% (67.2s versus 74.0s).
Make sure the following tasks are checked