mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
Motivation: We triggered extra allocations for the generics on PriorityQueue/Heap. They unfortunately can't be solved using `@_specialize` as the element type is `ScheduledTask`. Fortunately we never exposed those types externally so we can just inline without breaking the public API. Modifications: Moved everything from the `NIOPriorityQueue` module into the `NIO` module. Result: Less allocations, more happiness.