feat(run-task): enable parallel git checkout - #1041
Merged
Merged
Conversation
bhearsum
reviewed
Sep 13, 2026
bhearsum
left a comment
Contributor
There was a problem hiding this comment.
With one worker per core the cold checkout write of the Firefox tree went
from 27.9s to 13.3s on a GCP c3d-standard-8 docker worker and from 111.6s to
36.0s on an Azure Standard_F8alds_v7 Windows worker.
Nice win!
The git docs note that parallel checkout can be slower on spinning disks or machines with very few cores.
Doesn't need to block this, but perhaps worth considering adding an env var to make it possible to disable this, in case this comes up in practice?
Holding off approving this patch until it's actually mergeable.
Contributor
Author
Sure, I'll add it. |
ahochheiden
force-pushed
the
parallel-checkout
branch
2 times, most recently
from
September 15, 2026 22:33
3aaf5cc to
67fe2bf
Compare
git writes the working tree with one thread unless checkout.workers is set. With one worker per core the cold checkout write of the Firefox tree went from 27.9s to 13.3s on a GCP c3d-standard-8 docker worker and from 111.6s to 36.0s on an Azure Standard_F8alds_v7 Windows worker. Warm updates and blobless sparse checkouts did not change, since there the fetch dominates. The setting sits next to safe.directory in the global config, needs git 2.32, and older gits ignore the key. The git docs note that parallel checkout can be slower on spinning disks or machines with very few cores. Fixes taskcluster#1040
ahochheiden
force-pushed
the
parallel-checkout
branch
from
September 16, 2026 18:19
67fe2bf to
97f7083
Compare
bhearsum
approved these changes
Sep 16, 2026
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.
Fixes #1040
Stacked on #1039, only the top commit is new here.
Cold checkouts of the Firefox tree went from 27.9s to 13.3s on Linux and 111.6s to 36.0s on Windows. Git older than 2.32 ignores the settings.