Commit aba6bc3
http: switch on string values
Long ago, V8 was much faster switching on string lengths than values.
That is no longer the case, so we can simplify a couple of methods.
PR-URL: #18351
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Kyle Farnung <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jon Moss <[email protected]>1 parent 6c1906a commit aba6bc3
2 files changed
+46
-23
lines changed| 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 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
517 | 516 | | |
518 | | - | |
519 | | - | |
520 | | - | |
| 517 | + | |
| 518 | + | |
521 | 519 | | |
522 | | - | |
523 | | - | |
524 | | - | |
| 520 | + | |
| 521 | + | |
525 | 522 | | |
526 | 523 | | |
527 | 524 | | |
| |||
583 | 580 | | |
584 | 581 | | |
585 | 582 | | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
590 | 586 | | |
591 | | - | |
592 | | - | |
593 | | - | |
| 587 | + | |
| 588 | + | |
594 | 589 | | |
595 | | - | |
596 | | - | |
597 | | - | |
| 590 | + | |
| 591 | + | |
598 | 592 | | |
599 | | - | |
600 | | - | |
601 | | - | |
| 593 | + | |
| 594 | + | |
602 | 595 | | |
603 | 596 | | |
604 | 597 | | |
| |||
0 commit comments