Merged
Conversation
Loading images step currently takes ~30s +- a ton of variance. Linux CI jobs are currently taking 8-20m typically. So image builds can be up to ~6% of wall time. I've been playing around with further increasing Depot runner sizes. That delivers a considerable wall time reduction (<5m builds possible). This increases the percentage overhead of any "CI taxes," like restoring caches and pulling/loading container images. This commit implements a pair of optimizations to enable the image loading step to take as little as 5s: * We parallelize the image decompression + loading using simple `&` + `wait` shell features. * We filter out images that aren't needed for the current job. The filtering isn't fully lean - we don't currently filter out images related to cross-compiling. And we still incur overhead to download images we don't load. Those optimizations will wait for another day.
jjhelmus
approved these changes
Mar 24, 2026
Contributor
|
If you are looking at speeding up CI, splitting building dependencies from cpython and then reusing the built dependencies has the potential for a good improvement. #984 has a start for Windows. |
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.
Loading images step currently takes ~30s +- a ton of variance.
Linux CI jobs are currently taking 8-20m typically. So image builds can be up to ~6% of wall time.
I've been playing around with further increasing Depot runner sizes. That delivers a considerable wall time reduction (<5m builds possible). This increases the percentage overhead of any "CI taxes," like restoring caches and pulling/loading container images.
This commit implements a pair of optimizations to enable the image loading step to take as little as 5s:
&+waitshell features.The filtering isn't fully lean - we don't currently filter out images related to cross-compiling.
And we still incur overhead to download images we don't load.
Those optimizations will wait for another day.