Skip to content

perf: run pre-clone steps concurrently when using -j/--jumbo#93

Merged
dwilding merged 2 commits intomainfrom
jumbo-perf
Mar 2, 2026
Merged

perf: run pre-clone steps concurrently when using -j/--jumbo#93
dwilding merged 2 commits intomainfrom
jumbo-perf

Conversation

@dwilding
Copy link
Copy Markdown
Owner

@dwilding dwilding commented Mar 2, 2026

This PR improves performance when using -j/--jumbo to clone a large repo. Before cloning and creating a new branch, we need to (1) check that a branch with the same name doesn't already exist, (2) do a minimal shallow clone to determine the actual shallow date. Instead of doing these steps in sequence, we're now doing them in parallel using concurrent connections to GitHub. This speeds up cloning Juju by 20-25%.

Copilot AI review requested due to automatic review settings March 2, 2026 01:21

This comment was marked as resolved.

@dwilding dwilding merged commit e7db41e into main Mar 2, 2026
9 checks passed
@dwilding dwilding deleted the jumbo-perf branch March 2, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants