[zeromq-dev] kqueue & epoll based zmq_poll
Martin Sustrik
sustrik at 250bpm.com
Sat Jun 11 13:59:50 CEST 2011
On 06/11/2011 11:23 AM, Pieter Hintjens wrote:
> For the CZMQ zloop reactor, at least, we're only rebuilding the pollset
> when there's a change. So that'd work nicely with epoll et al.
Ok. I should have not mentioned the second caveat. The real point is
that epoll is meant to reduce complexity of polling from O(n) -- where n
is the size of pollset -- to O(1). If we use epoll to implement
zmq_poll(), we get complexity of O(n log n) which is actually worse than
O(n) that you get using poll or select.
Martin
More information about the zeromq-dev
mailing list