GeezerVison is showing github.com — Bundle installation performance improvements by henrymercer · Pull Request #2564 · github/codeql-action
Conversation
Make some performance improvements to bundle installation:
- Only stream the download and extraction of bundles on Linux.
- Only pass the archive to
tar via stdin when we're streaming the download and extraction.
- Bump the high water mark when streaming the download and extraction of the bundle to 16 MB to hopefully reduce context switching.
Merge / deployment checklist
- Confirm this change is backwards compatible with existing workflows.
- Confirm the readme has been updated if necessary.
- Confirm the changelog has been updated if necessary.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable. Do you have an idea how much time is being saved?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
henrymercer
commented
Oct 23, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Good question:
- Passing the archive via stdin seems to slow things down on macOS and Windows — on macOS from ~23s to ~28s, on Windows it is difficult to get a precise measurement since we only use zstd when explicitly specified.
- Streaming on macOS (~20s) is faster than passing the archive via stdin (~28s), but has bad p95 performance (several minutes), so it is more reliable to download in full and pass the file to tar (~23s).
- The high water mark I didn't observe anything over a small number of testing runs, but will see if there's a difference at larger scale.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 8, 2024
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.