Commit d764039
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 <jasnell@gmail.com>
Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>1 parent b5267a6 commit d764039Copy full SHA for d764039
File tree
Expand file treeCollapse file tree
2 files changed
+46
-23
lines changedOpen diff view settings
Filter options
- benchmark/http
- lib
Expand file treeCollapse file tree
2 files changed
+46
-23
lines changedOpen diff view settings
Collapse file
benchmark/http/set_header.js
Copy file name to clipboard+30Lines changed: 30 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 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
Collapse file
+16-23Lines changed: 16 additions & 23 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
515 | 515 | |
516 | 516 | |
517 | 517 | |
518 | | - |
519 | | - |
520 | | - |
521 | | - |
| 518 | + |
| 519 | + |
| 520 | + |
522 | 521 | |
523 | | - |
524 | | - |
525 | | - |
| 522 | + |
| 523 | + |
526 | 524 | |
527 | | - |
528 | | - |
529 | | - |
| 525 | + |
| 526 | + |
530 | 527 | |
531 | 528 | |
532 | 529 | |
| ||
588 | 585 | |
589 | 586 | |
590 | 587 | |
591 | | - |
592 | | - |
593 | | - |
594 | | - |
| 588 | + |
| 589 | + |
| 590 | + |
595 | 591 | |
596 | | - |
597 | | - |
598 | | - |
| 592 | + |
| 593 | + |
599 | 594 | |
600 | | - |
601 | | - |
602 | | - |
| 595 | + |
| 596 | + |
603 | 597 | |
604 | | - |
605 | | - |
606 | | - |
| 598 | + |
| 599 | + |
607 | 600 | |
608 | 601 | |
609 | 602 | |
|
0 commit comments