Files
swift-nio-http2/Sources/NIOHTTP2
George Barnett cee48fd87d Remove a few unnecessary allocations. (#243)
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
2020-09-22 11:17:19 +01:00
..