mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: I was seeing frequent reallocations of the headers array as it resized during decoding. Modifications: Reserve capacity for at least 16 HPACK headers during decoding. Result: Fewer reallocations at the cost of allocating more than we might need.