Skip to content

Commit

Permalink
stream: use Array for Readable buffer
Browse files Browse the repository at this point in the history
PR-URL: #50341
Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
  • Loading branch information
ronag authored and targos committed Nov 11, 2023
1 parent c9b92bb commit 65850a6
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 398 deletions.
2 changes: 1 addition & 1 deletion benchmark/streams/readable-bigread.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 15,7 @@ function main({ n }) {

bench.start();
for (let k = 0; k < n; k) {
for (let i = 0; i < 1e4; i)
for (let i = 0; i < 1e3; i)
s.push(b);
while (s.read(128));
}
Expand Down
2 changes: 1 addition & 1 deletion benchmark/streams/readable-readall.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 15,7 @@ function main({ n }) {

bench.start();
for (let k = 0; k < n; k) {
for (let i = 0; i < 1e4; i)
for (let i = 0; i < 1e3; i)
s.push(b);
while (s.read());
}
Expand Down
181 changes: 0 additions & 181 deletions lib/internal/streams/buffer_list.js

This file was deleted.

Loading

0 comments on commit 65850a6

Please sign in to comment.