4 ms·
Question: Was gevent, used by hiredis, using select or kqueue? IIRC gevent will default to select on OSX. kqueue could be faster. Also, both kqueue and select
by spamizbad 14y ago
Question: Was gevent, used by hiredis, using select or kqueue? IIRC gevent will default to select on OSX. kqueue could be faster.
Also, both kqueue and select were slightly buggy in OSX: http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#OS_X_AND_DARWIN_BUGS http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#OS_X_AN...
Not sure if that's still the case.
Would be interesting to see how these benchmark on a Linux or FreeBSD machine.
- loeg 14y agoZed Shaw benchmarked epoll vs poll a while back[0]. It looks like it really depends on the proportion of "active" clients to the total number. I would expect similar results for kqueue vs select (and as you point out, kqueue was horribly broken in OS X for a while). [0]: http://web.archive.org/web/20120225022154/http://sheddingbikes.com/posts/1280829388.html http://web.archive.org/web/20120225022154/http://sheddingbik...
- stephen_mcd 14y agogevent wasn't used in the benchmarks