Commit 689d22a
committed
http2: optimize neverIndex SafeSet creation
Only create SafeSet when sensitiveHeaders array is non-empty.
This optimizes the common case where sensitiveHeaders is empty
by avoiding Set creation overhead in the hot path.
The optimization maintains correctness for all cases while
providing significant performance improvement for the common
case where sensitiveHeaders is not explicitly configured.1 parent 534442f commit 689d22a
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
764 | | - | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
765 | 771 | | |
766 | 772 | | |
767 | 773 | | |
| |||
787 | 793 | | |
788 | 794 | | |
789 | 795 | | |
790 | | - | |
| 796 | + | |
791 | 797 | | |
792 | 798 | | |
793 | 799 | | |
| |||
0 commit comments