swift-nio-transport-services/Sources/NIOTransportServices
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
..
Datagram Change naming of datagram-related types to make them more consistent + fix docs (#233) 2025-04-29 13:56:21 +01:00
Docs.docc Raise minimum Swift version to 5.8 (#199) 2024-03-11 09:32:56 +00:00
AcceptHandler.swift Strict concurrency for NIOTransportServices and tests (#228) 2025-04-02 10:54:00 +01:00
NIOFilterEmptyWritesHandler.swift Migrate CI to use GitHub Actions. (#213) 2024-10-28 09:51:24 +00:00
NIOTSBootstraps.swift Migrate CI to use GitHub Actions. (#213) 2024-10-28 09:51:24 +00:00
NIOTSChannelOptions.swift Strict concurrency for NIOTransportServices and tests (#228) 2025-04-02 10:54:00 +01:00
NIOTSConnectionBootstrap.swift Change naming of datagram-related types to make them more consistent + fix docs (#233) 2025-04-29 13:56:21 +01:00
NIOTSConnectionChannel.swift Added buffer pool to NIOTSConnectionChannel (#236) 2025-05-13 18:44:21 +01:00
NIOTSErrors.swift Fix missing strict concurrency error (#231) 2025-04-09 15:08:12 +01:00
NIOTSEventLoop.swift Strict concurrency for NIOTransportServices and tests (#228) 2025-04-02 10:54:00 +01:00
NIOTSEventLoopGroup.swift Strict concurrency for NIOTransportServices and tests (#228) 2025-04-02 10:54:00 +01:00
NIOTSListenerBootstrap.swift Change naming of datagram-related types to make them more consistent + fix docs (#233) 2025-04-29 13:56:21 +01:00
NIOTSListenerChannel.swift Add `NWParameters` configurator to bootstraps (#230) 2025-04-16 14:33:56 +01:00
NIOTSNetworkEvents.swift Strict concurrency for NIOTransportServices and tests (#228) 2025-04-02 10:54:00 +01:00
NIOTSSingletons.swift Add missing Dispatch import (#223) 2025-01-31 10:26:33 +00:00
SocketAddress+NWEndpoint.swift Migrate CI to use GitHub Actions. (#213) 2024-10-28 09:51:24 +00:00
StateManagedChannel.swift Migrate CI to use GitHub Actions. (#213) 2024-10-28 09:51:24 +00:00
StateManagedListenerChannel.swift Add `NWParameters` configurator to bootstraps (#230) 2025-04-16 14:33:56 +01:00
StateManagedNWConnectionChannel.swift Add `NWParameters` configurator to bootstraps (#230) 2025-04-16 14:33:56 +01:00
TCPOptions+SocketChannelOption.swift Extract the NWConnection code into StateManagedNWConnectionChannel (#174) 2023-07-08 12:41:46 +01:00
UDPOptions+SocketChannelOption.swift State Managed Listeners (#175) 2023-07-09 07:41:03 -04:00