swift-nio-transport-services/Sources
Rafael Cepeda 9224dc5159
Added buffer pool to NIOTSConnectionChannel (#236)
Added buffer pool to NIOTSConnectionChannel for reading messages.

### Motivation:

In order to avoid creating a new `ByteBuffer` for every single message
read from the channel, we decided to reuse the
`NIOPooledRecvBufferAllocator` type from NIOCore to leverage a pool of
buffers.

### Modifications:

Used the buffer allocation mechanism provided by the
`NIOPooledRecvBufferAllocator` to reuse and adapt previously created
receive buffers.

### Result:

Channel reads can now reuse previously created buffers, avoiding
unnecessary overhead by creating new buffers every single time.
2025-05-13 18:44:21 +01:00
..
NIOTSHTTPClient Fix availability guards and compiler warnings (#195) 2023-12-08 13:02:43 +00:00
NIOTSHTTPServer Migrate CI to use GitHub Actions. (#213) 2024-10-28 09:51:24 +00:00
NIOTransportServices Added buffer pool to NIOTSConnectionChannel (#236) 2025-05-13 18:44:21 +01:00