Make decompression a bit faster
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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