Uh oh!
There was an error while loading. Please reload this page.
stream: use ByteLengthQueuingStrategy when not in object mode - #48847
Conversation
2d2b9d0 to
a87605fCompareThis would probably not be spec compliant, https://streams.spec.whatwg.org/#readable-stream-default-controller-should-call-pull I do not think we are allowed to add additional steps not mentioned in the spec |
Uh oh!
There was an error while loading. Please reload this page.
ee2ce42 to
2d2672aCompare
This comment was marked as resolved.
This comment was marked as resolved.
d6fcf75 to
74ada82Comparec5c66b4 to
81c3376Comparedebadree25
commented
Jul 22, 2023
A previous PR had attempted the same, nonethless would cc @nodejs/whatwg-stream to take a look! |
jasnell
commented
Sep 14, 2023
Given that this is for our Node.js stream adapters, this change should be fine. |
nodejs-github-bot
commented
Sep 14, 2023
nodejs-github-bot
commented
Sep 15, 2023
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
There was a problem hiding this comment.
Ironically yes, this test has become flaky: nodejs/reliability#1250
nodejs-github-bot
commented
Sep 23, 2023
nodejs-github-bot
commented
Sep 26, 2023
5b65e37 to
6cb8b2fComparenodejs-github-bot
commented
May 11, 2024
nodejs-github-bot
commented
May 12, 2024
nodejs-github-bot
commented
May 12, 2024
aduh95
commented
May 12, 2024
Landed in 261e88e |
Fixes: nodejs#46347 PR-URL: nodejs#48847 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
arsnyder16
commented
Aug 30, 2024
@CGQAQ Same issues with newWritableStreamFromStreamWritable ?https://github.com/CGQAQ/node/blob/885692a34f582c99d74430ba351879431738e43a/lib/internal/webstreams/adapters.js#L167 |
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