actions / actions/toolkit

Make decompression a bit faster

Open
#988 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Here
https://github.com/actions/toolkit/blob/634dc61da2332f1062d1fe800ccc7fe51d3c67bf/packages/cache/src/internal/tar.ts#L70-L72

You seem to be using the standard option, which gives high compression ration, but less compression speed. I wonder if it's really worth the while to do so, since what's required from a cache is that it decompresses fast when there's a cache hit. Since that's offloaded somewhere else, less compression ration means it might take more to download, but it's still likely that decompression speed trumps downloading speed. Did you try that?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/cache/src/internal/tar.ts at lines 70-72 and inspect the compression option currently used. Compare the relevant compression and decompression behavior, including the download-size tradeoff, using measurements where possible. Done means the faster approach is validated and the cache behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
performance, tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.