mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: `HPACKHeaders` has an `init` which will normalize `HTTPHeaders`, this includes removing any headers which are illegal in HTTP2 and any headers which present as a 'connection' header value. As written this is expensive in some edges cases. With perf tests we can validate that implementation changes improve performance. Modifications: Add a performance test to normalize `HTTPHeaders`. This is run on two configurations. Result: More insight into header normalisation perf.