Improve performance of deflate compressed payloads
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 880
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 68
Description
A solution would be to defer resolving the promise until we get the first chunk, get the first byte, unshift the rest and assemble the pipeline correctly.
Originally posted by @mcollina in https://github.com/nodejs/undici/pull/2650#pullrequestreview-1847139805
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
Read the referenced discussion in pull request 2650, then trace the deflate compressed-payload pipeline and measure when the promise resolves relative to the first chunk. Done means the pipeline handles the first chunk as described while improving performance without breaking decompression behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- networking, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100