Commit 59196af
stream: avoid additional validation for Buffers
These changes result in ~50% improvement in the included benchmark.
PR-URL: #10580
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent ded1757 commit 59196afCopy full SHA for 59196af
File tree
Expand file treeCollapse file tree
2 files changed
+40
-20
lines changedOpen diff view settings
Filter options
- benchmark/streams
- lib
Expand file treeCollapse file tree
2 files changed
+40
-20
lines changedOpen diff view settings
Collapse file
benchmark/streams/writable-manywrites.js
Copy file name to clipboard+23Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
Collapse file
+17-20Lines changed: 17 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
194 | 194 | |
195 | 195 | |
196 | 196 | |
197 | | - |
198 | | - |
199 | | - |
200 | | - |
201 | | - |
| 197 | + |
| 198 | + |
| 199 | + |
202 | 200 | |
203 | 201 | |
204 | 202 | |
205 | | - |
206 | | - |
207 | | - |
| 203 | + |
208 | 204 | |
209 | 205 | |
210 | | - |
211 | | - |
212 | | - |
213 | | - |
| 206 | + |
| 207 | + |
| 208 | + |
214 | 209 | |
215 | 210 | |
216 | 211 | |
| ||
224 | 219 | |
225 | 220 | |
226 | 221 | |
| 222 | + |
227 | 223 | |
228 | 224 | |
229 | 225 | |
230 | 226 | |
231 | 227 | |
232 | 228 | |
233 | | - |
| 229 | + |
234 | 230 | |
235 | 231 | |
236 | 232 | |
| ||
240 | 236 | |
241 | 237 | |
242 | 238 | |
243 | | - |
| 239 | + |
244 | 240 | |
245 | | - |
| 241 | + |
246 | 242 | |
247 | 243 | |
248 | 244 | |
| ||
291 | 287 | |
292 | 288 | |
293 | 289 | |
294 | | - |
295 | | - |
296 | | - |
297 | | - |
298 | | - |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
299 | 296 | |
300 | 297 | |
301 | 298 | |
|
0 commit comments