mirror of
https://github.com/apple/swift-nio
synced 2026-11-22 04:30:41 +00:00
Motivation: As pointed out in #3071, the `flatScheduleTask` implementations can be improved. Modifications: - Refactor the `flatScheduleTask` implementations to skip `flatMap` calls, which avoids creating an extra promise. - As there is now a lower number of allocations, reduce the necessary thresholds for the allocation tests. Result: Reduction in the number of allocations in the package. --------- Co-authored-by: George Barnett <gbarnett@apple.com>