mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: Every EventLoopFuture was allocating an atomic boolean (which needs to heap allocate because Swift) literally just to make the leakage checker work. But the leakage checker is only active in debug mode, the allocation however was _always_ done. Modifications: Remove the allocation in release mode (by making the atomic optional). Result: Fewer allocations