smol-rs / polling

Portable interface to epoll, kqueue, event ports, and wepoll
Apache License 2.0
534 stars 65 forks source link

Figure out the optimal number of sockets to use per AFD handle #121

Open notgull opened 1 year ago

notgull commented 1 year ago

This comment says that an arbitrary number of sockets can be used per AFD handle. However, wepoll limits it to 32, as apparently it gets slower to cancel requests the more sockets are associated with the handle. I just did 32 sockets because that's what wepoll did, but it would be nice to do some benchmarking and figure out the optimal number for our use case.