{{ message }}
stream: use ByteLengthQueuingStrategy when not in object mode#48847
Merged
Conversation
2d2b9d0 to
a87605f
Compare
Contributor
CGQAQ
commented
Jul 20, 2023
ee2ce42 to
2d2672a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
d6fcf75 to
74ada82
Compare
c5c66b4 to
81c3376
Compare
Contributor
|
A previous PR had attempted the same, nonethless would cc @nodejs/whatwg-stream to take a look! |
jasnell
approved these changes
Sep 14, 2023
Member
Given that this is for our Node.js stream adapters, this change should be fine. |
Collaborator
13 tasks
Collaborator
debadree25
reviewed
Sep 15, 2023
|
|
||
| assert(currentMemoryUsage <= 256 * 1024 * 1024); | ||
| }; | ||
| setInterval(reportMemoryUsage, 1000); |
Contributor
There was a problem hiding this comment.
I wonder if this test could be somewhat flakey? too many timeouts but nonetheless shouldn't be a blocker
Contributor
There was a problem hiding this comment.
Ironically yes, this test has become flaky: nodejs/reliability#1250
This was referenced Sep 16, 2023
Collaborator
20 tasks
Collaborator
5b65e37 to
6cb8b2f
Compare
Collaborator
Collaborator
Collaborator
Contributor
|
Landed in 261e88e |
Merged
soophoo
pushed a commit
to soophoo/node
that referenced
this pull request
Jun 20, 2024
Fixes: nodejs#46347 PR-URL: nodejs#48847 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
bmeck
pushed a commit
to bmeck/node
that referenced
this pull request
Jun 22, 2024
Fixes: nodejs#46347 PR-URL: nodejs#48847 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Use ByteLengthQueuingStrategy when not in object mode
After this PR
Array buffers memory usage is 0 MiB
Array buffers memory usage is 0 MiB
converting node stream to web stream
Array buffers memory usage is 0 MiB
Array buffers memory usage is 0 MiB
Array buffers memory usage is 0 MiB
Array buffers memory usage is 0 MiB
Array buffers memory usage is 0 MiB
Array buffers memory usage is 0 MiB
Array buffers memory usage is 0 MiB
reading the chunks
Array buffers memory usage is 2 MiB
Array buffers memory usage is 31 MiB
Array buffers memory usage is 9 MiB
Array buffers memory usage is 18 MiB
Array buffers memory usage is 9 MiB
Array buffers memory usage is 5 MiB
Array buffers memory usage is 8 MiB
Array buffers memory usage is 17 MiB
Array buffers memory usage is 13 MiB
Array buffers memory usage is 12 MiB
Array buffers memory usage is 19 MiB
Array buffers memory usage is 20 MiB
Array buffers memory usage is 31 MiB
Array buffers memory usage is 11 MiB
Array buffers memory usage is 24 MiB
Array buffers memory usage is 17 MiB
fixes: #46347