On 11 June 2011 13:59, Martin Sustrik <sust...@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
_______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev