Skip to content

Conversation

@ronag
Copy link
Member

@ronag ronag commented Oct 27, 2025

Instead of wasting cycles concatenating buffers, just return each one by one.

Instead of wasting cycles concatenating buffers, just return each
one by one.
@ronag ronag requested a review from mcollina October 27, 2025 18:44
@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Oct 27, 2025

Review requested:

  • @nodejs/streams

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem. labels Oct 27, 2025
const data = readable.read();
// TODO(mcollina): there is something odd in the highWaterMark logic
// investigate.
if (i === 1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if seems to be redundant now?

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

Labels

needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants