Skip to content

stream: introduce Body#39483

Closed
ronag wants to merge 6 commits intonodejs:mainfrom
nxtedition:stream-body
Closed

stream: introduce Body#39483
ronag wants to merge 6 commits intonodejs:mainfrom
nxtedition:stream-body

Conversation

@ronag
Copy link
Member

@ronag ronag commented Jul 22, 2021

This introduces a new stream primitive called Body which helps
with performance, ergonomics and compatibility when working
with different types of data producers and consumers.

Using Body it will be possible to delay converting streamlike
objects as long as possible and enable some optimizations where
we can avoid e.g. intermediate node streams.

The current implementation does not yet take advantage of possible optimizations. However, I think that is something we can add and improve on in the future.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants