Files
swift-nio/IntegrationTests
Mahdi Bahrami 63018571c8 [perf] Do stack allocs instead of heap allocs for small fixed-size allocations (#3652)
For small fixed-size allocations, we can use stack instead of heap.

### Motivation:

Allocations are costly. Stack allocations are much cheaper than heap
allocations.

### Modifications:

Use `withUnsafeTemporaryAllocation(of:capacity:_:)` instead of
allocating an `Array`.
`withUnsafeTemporaryAllocation` allocates on the stack for up to 1000
bytes.

### Result:

Better performance.
2026-07-24 12:13:48 +01:00
..