develooper Front page | perl.loop | Postings from April 2008

Re: benchmarking various event loops with and without anyevent

Thread Previous | Thread Next
From:
Rocco Caputo
Date:
April 26, 2008 05:13
Subject:
Re: benchmarking various event loops with and without anyevent
Message ID:
03206B1B-F581-48AA-8FF1-0EA0B25D8D75@pobox.com
On Apr 25, 2008, at 22:46, Marc Lehmann wrote:
>
> The next release of AnyEvent contains support for a few more  
> "backends",
> notably POE, so AnyEvent is now by definition compatible to POE  
> (before it
> was only compatible when using an even loop used by POE, such as  
> Event or
> EV that could be shared).

> The results were mostly as expected, with EV leading and POE being
> abysmal.

It's no wonder that AnyEvent::Impl::POE runs so slowly.  According to  
your documentation, you designed it to use a separate POE::Session for  
each event watcher.  Anyone who knows POE can tell you this is one of  
the least efficient designs possible.  In fact, this design is worse  
than the average for first-time POE users.

On the bright side, you could still have done worse.  You could have  
instantiated and destroyed a POE::Session for each event.  Perhaps  
you're saving that for a future release. :)

I have specific issues with your docs.  As a courtesy to you and the  
list, I'll send them to you directly.

-- 
Rocco Caputo - rcaputo@pobox.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About