Skip to content

Avoid PassThrough to avoid buffering in pipeline #32039

@mcollina

Description

@mcollina

In the new async-terator capable pipeline as implemented in #31223, we support passing in an async generator function.
Reading from

const pt = new PassThrough();
, it seems we are always wrapping it in a stream internally. This adds overhead and another level of buffering.

We should avoid wrapping it in a PassThrough to avoid said buffering and overhead.

Metadata

Metadata

Assignees

Labels

streamIssues and PRs related to the stream subsystem.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions