I've been doing some non-memcached related stuff with libevent recently and was also looking at libev as an alternative. libev has a libevent emulation thinger (basically a tarball of libevent with the libev stuff in the guts) that supposedly lets you use libevent as you normally would (with some caveats I believe).
I actually tried compiling memcached against the emulated libevent and ran my benchmarks and found the standard libevent (1.4.1) was faster. To be fair, I didn't spend more than 15 minutes looking at it. It could also be that actually rewriting the event handling stuff in memcached to use libev directly would be faster and a better comparison, but FWIW ... Josh On Tue, Mar 18, 2008 at 7:33 PM, Aaron Stone <[EMAIL PROTECTED]> wrote: > This is the first log entry for libev's ev.c: > > Revision 1.1 - (view) (download) (as text) (annotate) - [select for > diffs] > Tue Oct 30 20:59:31 2007 UTC (4 months, 2 weeks ago) by root > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Branch: MAIN > initial roguh cut that doesn't immediately barf > > > Memcached first became public around 2003. That explains the special > reason it doesn't use libev! > > Now, if libev does some spectacularly better stuff that libevent > doesn't do, that can benefit memcached, bring it up! Nobody (well, > mostly :-p) on the list is averse to discussing useful improvements. > > Aaron > > > > > On Mar 18, 2008, at 7:17 PM, mikhail maluyk wrote: > > > Is there any special reason why memcached is using libevent instead > > of libev? > > Benchmarks at libev site shows very good performance. > >
