Commit f928746
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 de22ff6 commit f928746Copy full SHA for f928746
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 |
|---|---|---|
| ||
196 | 196 | |
197 | 197 | |
198 | 198 | |
199 | | - |
200 | | - |
201 | | - |
202 | | - |
203 | | - |
| 199 | + |
| 200 | + |
| 201 | + |
204 | 202 | |
205 | 203 | |
206 | 204 | |
207 | | - |
208 | | - |
209 | | - |
| 205 | + |
210 | 206 | |
211 | 207 | |
212 | | - |
213 | | - |
214 | | - |
215 | | - |
| 208 | + |
| 209 | + |
| 210 | + |
216 | 211 | |
217 | 212 | |
218 | 213 | |
| ||
226 | 221 | |
227 | 222 | |
228 | 223 | |
| 224 | + |
229 | 225 | |
230 | 226 | |
231 | 227 | |
232 | 228 | |
233 | 229 | |
234 | 230 | |
235 | | - |
| 231 | + |
236 | 232 | |
237 | 233 | |
238 | 234 | |
| ||
242 | 238 | |
243 | 239 | |
244 | 240 | |
245 | | - |
| 241 | + |
246 | 242 | |
247 | | - |
| 243 | + |
248 | 244 | |
249 | 245 | |
250 | 246 | |
| ||
293 | 289 | |
294 | 290 | |
295 | 291 | |
296 | | - |
297 | | - |
298 | | - |
299 | | - |
300 | | - |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
301 | 298 | |
302 | 299 | |
303 | 300 | |
|
0 commit comments