GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bundle installation performance improvements by henrymercer · Pull Request #2564 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented Oct 22, 2024

Copy link
Copy Markdown
Contributor

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.

All reactions
henrymercer added 4 commits October 22, 2024 17:32
@henrymercer
Bundle install: Only use stdin for streaming
8c3a732
@henrymercer
Bump high water mark when downloading bundle to 16 MB
06361b4
@henrymercer
Tweak a couple of log messages
e5048f5
@henrymercer
Only stream installing the bundle on Linux
972eba1
@henrymercer
henrymercer requested a review from a team as a code owner October 22, 2024 21:07
aeisenberg
aeisenberg approved these changes Oct 22, 2024
View reviewed changes

@aeisenberg aeisenberg left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
@henrymercer

henrymercer commented Oct 23, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@henrymercer
henrymercer merged commit b97ec3a into main Oct 23, 2024
@henrymercer
henrymercer deleted the henrymercer/only-use-stdin-for-streaming branch October 23, 2024 09:54
This was referenced Nov 8, 2024
Merge main into releases/v3 #2585
Merged
Merge releases/v3 into releases/v2 #2587
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

2 participants

@henrymercer @aeisenberg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.