Commit ba5683c
fs: add
Add an option that controls the size of the internal
buffer.
Fixes: #29941
PR-URL: #30114
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>bufferSize option to fs.opendir()
1 parent f3196db commit ba5683cCopy full SHA for ba5683c
File tree
Expand file treeCollapse file tree
7 files changed
+85
-18
lines changedOpen diff view settings
Filter options
- benchmark/fs
- doc/api
- lib/internal/fs
- src
- test
- benchmark
- parallel
Expand file treeCollapse file tree
7 files changed
+85
-18
lines changedOpen diff view settings
Collapse file
benchmark/fs/bench-opendir.js
Copy file name to clipboardExpand all lines: benchmark/fs/bench-opendir.js+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
| 11 | + |
11 | 12 | |
12 | 13 | |
13 | | - |
| 14 | + |
14 | 15 | |
15 | 16 | |
16 | 17 | |
17 | 18 | |
18 | 19 | |
19 | 20 | |
20 | 21 | |
| 22 | + |
21 | 23 | |
22 | | - |
| 24 | + |
23 | 25 | |
24 | 26 | |
25 | | - |
| 27 | + |
26 | 28 | |
27 | 29 | |
28 | 30 | |
| ||
40 | 42 | |
41 | 43 | |
42 | 44 | |
43 | | - |
| 45 | + |
44 | 46 | |
45 | 47 | |
46 | 48 | |
|
Collapse file
+21Lines changed: 21 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2625 | 2625 | |
2626 | 2626 | |
2627 | 2627 | |
| 2628 | + |
| 2629 | + |
| 2630 | + |
| 2631 | + |
2628 | 2632 | |
2629 | 2633 | |
2630 | 2634 | |
2631 | 2635 | |
2632 | 2636 | |
| 2637 | + |
| 2638 | + |
| 2639 | + |
2633 | 2640 | |
2634 | 2641 | |
2635 | 2642 | |
| ||
2645 | 2652 | |
2646 | 2653 | |
2647 | 2654 | |
| 2655 | + |
| 2656 | + |
| 2657 | + |
| 2658 | + |
2648 | 2659 | |
2649 | 2660 | |
2650 | 2661 | |
2651 | 2662 | |
2652 | 2663 | |
| 2664 | + |
| 2665 | + |
| 2666 | + |
2653 | 2667 | |
2654 | 2668 | |
2655 | 2669 | |
| ||
4829 | 4843 | |
4830 | 4844 | |
4831 | 4845 | |
| 4846 | + |
| 4847 | + |
| 4848 | + |
| 4849 | + |
4832 | 4850 | |
4833 | 4851 | |
4834 | 4852 | |
4835 | 4853 | |
4836 | 4854 | |
| 4855 | + |
| 4856 | + |
| 4857 | + |
4837 | 4858 | |
4838 | 4859 | |
4839 | 4860 | |
|
Collapse file
+13-3Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
| 24 | + |
| 25 | + |
| 26 | + |
24 | 27 | |
25 | 28 | |
26 | 29 | |
| ||
39 | 42 | |
40 | 43 | |
41 | 44 | |
42 | | - |
43 | | - |
44 | | - |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
45 | 53 | |
46 | 54 | |
47 | 55 | |
| ||
88 | 96 | |
89 | 97 | |
90 | 98 | |
| 99 | + |
91 | 100 | |
92 | 101 | |
93 | 102 | |
| ||
105 | 114 | |
106 | 115 | |
107 | 116 | |
| 117 | + |
108 | 118 | |
109 | 119 | |
110 | 120 | |
|
Collapse file
+18-8Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
| 39 | + |
39 | 40 | |
40 | 41 | |
41 | 42 | |
| ||
59 | 60 | |
60 | 61 | |
61 | 62 | |
62 | | - |
63 | | - |
| 63 | + |
| 64 | + |
64 | 65 | |
65 | 66 | |
66 | 67 | |
| ||
230 | 231 | |
231 | 232 | |
232 | 233 | |
233 | | - |
| 234 | + |
234 | 235 | |
235 | 236 | |
236 | 237 | |
237 | 238 | |
238 | 239 | |
239 | 240 | |
240 | | - |
241 | | - |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
242 | 252 | |
243 | 253 | |
244 | | - |
245 | | - |
| 254 | + |
| 255 | + |
246 | 256 | |
247 | 257 | |
248 | | - |
| 258 | + |
249 | 259 | |
250 | 260 | |
251 | 261 | |
|
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
48 | | - |
49 | | - |
| 48 | + |
| 49 | + |
50 | 50 | |
51 | 51 | |
52 | 52 | |
|
Collapse file
test/benchmark/test-benchmark-fs.js
Copy file name to clipboardExpand all lines: test/benchmark/test-benchmark-fs.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
| 10 | + |
10 | 11 | |
11 | 12 | |
12 | 13 | |
|
Collapse file
test/parallel/test-fs-opendir.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-opendir.js+23Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
186 | 186 | |
187 | 187 | |
188 | 188 | |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
0 commit comments