Files
swift-nio/Benchmarks/Thresholds
Fabian Fett ada5f7690b Improve NIOAsyncChannel performance with UnsafeContinuations (#3521)
Let's improve NIOAsyncChannels performance, by using UnsafeContinuations
instead of CheckedContinuations.

### Motivation:

We want to improve the performance for our async APIs.

### Modifications:

- Introduce a new typealias `NIOUnsafeContinuation` that behaves like a
UnsafeContinuation in release mode and like a CheckedContinuation in
debug mode.
- Use the `NIOUnsafeContinuation` inside the `NIOAsyncWriter`
- Use the `NIOUnsafeContinuation` inside the
`NIOThrowingAsyncSequenceProducer`

### Result:

Fewer allocations
2026-03-04 11:09:34 +00:00
..