Commit 4a79b25
src: improve StreamBase write throughput
Improve performance by transferring information about write status
to JS through an `AliasedBuffer`, rather than object properties
set from C++.
PR-URL: #23843
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>1 parent 22bbece commit 4a79b25Copy full SHA for 4a79b25
File tree
Expand file treeCollapse file tree
11 files changed
+41
-37
lines changedOpen diff view settings
Filter options
- benchmark/net
- lib/internal
- src
- test/sequential
Expand file treeCollapse file tree
11 files changed
+41
-37
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | 12 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | 12 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
| 8 | + |
9 | 9 | |
10 | 10 | |
11 | 11 | |
|
Collapse file
benchmark/net/net-wrap-js-stream-passthrough.js
Copy file name to clipboardExpand all lines: benchmark/net/net-wrap-js-stream-passthrough.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
| 8 | + |
9 | 9 | |
10 | 10 | |
11 | 11 | |
|
Collapse file
lib/internal/child_process.js
Copy file name to clipboardExpand all lines: lib/internal/child_process.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
| 29 | + |
29 | 30 | |
30 | 31 | |
31 | 32 | |
| ||
717 | 718 | |
718 | 719 | |
719 | 720 | |
720 | | - |
721 | 721 | |
722 | 722 | |
723 | 723 | |
| 724 | + |
724 | 725 | |
725 | 726 | |
726 | 727 | |
| ||
730 | 731 | |
731 | 732 | |
732 | 733 | |
733 | | - |
| 734 | + |
734 | 735 | |
735 | 736 | |
736 | 737 | |
|
Collapse file
lib/internal/stream_base_commons.js
Copy file name to clipboardExpand all lines: lib/internal/stream_base_commons.js+20-2Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
| 10 | + |
9 | 11 | |
10 | 12 | |
11 | 13 | |
| ||
20 | 22 | |
21 | 23 | |
22 | 24 | |
23 | | - |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
24 | 31 | |
25 | 32 | |
26 | 33 | |
| ||
35 | 42 | |
36 | 43 | |
37 | 44 | |
38 | | - |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
39 | 52 | |
40 | 53 | |
41 | 54 | |
| ||
45 | 58 | |
46 | 59 | |
47 | 60 | |
| 61 | + |
| 62 | + |
48 | 63 | |
49 | 64 | |
50 | 65 | |
| ||
80 | 95 | |
81 | 96 | |
82 | 97 | |
| 98 | + |
| 99 | + |
| 100 | + |
83 | 101 | |
84 | 102 | |
85 | 103 | |
|
Collapse file
-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
125 | 125 | |
126 | 126 | |
127 | 127 | |
128 | | - |
129 | 128 | |
130 | 129 | |
131 | | - |
132 | 130 | |
133 | 131 | |
134 | 132 | |
|
Collapse file
+7-26Lines changed: 7 additions & 26 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
22 | 21 | |
23 | 22 | |
24 | 23 | |
25 | 24 | |
26 | 25 | |
27 | | - |
28 | 26 | |
29 | 27 | |
30 | 28 | |
| ||
56 | 54 | |
57 | 55 | |
58 | 56 | |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
| 57 | + |
| 58 | + |
| 59 | + |
71 | 60 | |
72 | 61 | |
73 | 62 | |
| ||
160 | 149 | |
161 | 150 | |
162 | 151 | |
163 | | - |
| 152 | + |
164 | 153 | |
165 | 154 | |
166 | 155 | |
| ||
185 | 174 | |
186 | 175 | |
187 | 176 | |
188 | | - |
189 | | - |
190 | | - |
191 | | - |
| 177 | + |
192 | 178 | |
193 | 179 | |
194 | 180 | |
| ||
247 | 233 | |
248 | 234 | |
249 | 235 | |
250 | | - |
251 | | - |
252 | | - |
253 | | - |
254 | | - |
255 | | - |
| 236 | + |
256 | 237 | |
257 | 238 | |
258 | 239 | |
| ||
295 | 276 | |
296 | 277 | |
297 | 278 | |
298 | | - |
| 279 | + |
299 | 280 | |
300 | 281 | |
301 | 282 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
332 | 332 | |
333 | 333 | |
334 | 334 | |
| 335 | + |
| 336 | + |
335 | 337 | |
336 | 338 | |
337 | 339 | |
338 | 340 | |
339 | 341 | |
340 | 342 | |
341 | 343 | |
| 344 | + |
| 345 | + |
342 | 346 | |
343 | 347 | |
344 | 348 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
83 | 83 | |
84 | 84 | |
85 | 85 | |
| 86 | + |
| 87 | + |
86 | 88 | |
87 | 89 | |
88 | 90 | |
|
0 commit comments