Commit 7ec28a0
querystring: avoid indexOf when parsing
Fixes a performance regression in body-parser with V8 6.0.
Removes the use of an auxiliary array, and just query the object
directly.
PR-URL: #14703
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 1e569f4 commit 7ec28a0
1 file changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
| |||
326 | 325 | | |
327 | 326 | | |
328 | 327 | | |
329 | | - | |
330 | | - | |
331 | | - | |
| 328 | + | |
332 | 329 | | |
333 | | - | |
334 | 330 | | |
335 | 331 | | |
336 | 332 | | |
| |||
428 | 424 | | |
429 | 425 | | |
430 | 426 | | |
431 | | - | |
432 | | - | |
| 427 | + | |
433 | 428 | | |
434 | | - | |
435 | 429 | | |
436 | 430 | | |
437 | 431 | | |
| |||
0 commit comments