apple / swift-nio-transport-services

Extensions for SwiftNIO to support Apple platforms as first-class citizens.
https://swiftpackageindex.com/apple/swift-nio-transport-services/main/documentation/niotransportservices
Apache License 2.0
282 stars 71 forks source link

Implement customization point for `enqueue` #190

Open FranzBusch opened 11 months ago

FranzBusch commented 11 months ago

Motivation

The default implementation of SerialExecutor for EventLoops causes a lot of allocations that's why we added a new customization point to allow EventLoops to implement fast paths.

Modification

This PR adds the customization point to NIOTSEventLoop.