Home  |  Linux  | Mysql  | PHP  | XML
From:Rocco Caputo Date:Sat Apr 26 06:13:27 2008
Subject:Re: benchmarking various event loops with and without anyevent
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
Navigate in group perl.loop at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants