mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: Unnecessary allocations are bad! Modifications: - Use 'removeAll' instead of allocating a new buffer when dropping pending reads in the 'HTTP2StreamChannel' - Use a static empty buffer in 'DataBuffer.evacuatePendingWrites' Result: - Fewer allocations. - Resolves #240 - Resolves #241