[zeromq-dev] kqueue & epoll based zmq_poll
Marko Mikulicic
marko.mikulicic at isti.cnr.it
Sat Jun 11 14:03:42 CEST 2011
On 11 June 2011 13:59, Martin Sustrik <sustrik at 250bpm.com> wrote:
> 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.
>
at least this means the czmq can be easily adapted to an eventual new
zmq_epoll api.
Cheers,
Marko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110611/6b6e3608/attachment.htm>
More information about the zeromq-dev
mailing list