Commit 0046eff
committed
http2: optimize neverIndex lookup with SafeSet
Replace array-based neverIndex lookup with SafeSet for O(1) lookup
performance. This improves buildNgHeaderString performance from
O(n) to O(1) per header, providing significant speedup in hot path
scenarios with many headers.1 parent 5c8ce91 commit 0046eff
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
764 | | - | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
765 | 768 | | |
766 | 769 | | |
767 | 770 | | |
| |||
787 | 790 | | |
788 | 791 | | |
789 | 792 | | |
790 | | - | |
| 793 | + | |
791 | 794 | | |
792 | 795 | | |
793 | 796 | | |
| |||
0 commit comments