by halayli · 11y ago · 0 comments
https://github.com/logcabin/logcabin/blob/master/Event/Loop....
an event can be read/write, and each fd:event_type should be able to map to a different Event::file.
In its current form, if you receive 2000 events, you'll need to unnecessarily context switch 2000 times.
I do think it's an interesting (dare I say) limitation of epoll, and something I'd think about if I was redesigning epoll.
Please file an issue on github if you have ideas on how to improve this without adding significant complexity.