nodejs / nodejs/undici

Improve performance of deflate compressed payloads

Open
#2,657 0 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.