Home  |  Linux  | Mysql  | PHP  | XML
From:Marc Lehmann Date:Sat Apr 26 00:43:48 2008
Subject:Re: benchmarking various event loops with and without anyevent
On Sat, Apr 26, 2008 at 01:14:07AM -0400, Uri Guttman <uri@stemsystems.com> wrote:
> >>>>> "ML" == Marc Lehmann <schmorp@schmorp.de> writes:
> 
>   ML> On Fri, Apr 25, 2008 at 11:40:03PM -0400, Uri Guttman <uri@stemsystems.com> wrote:
>   >> check out stem's pure perl event loop. there are examples in the
> 
>   ML> Maybe I'll provide a backend for stem.
> 
> actually it makes more sense to me to wrap anyevent in stem. it already
> has several event wrappers (pure perl, event.pm and tk) and wrapping is
> very easy to do. not much different than the code i see in anyevent.

FYI: I think I found a bug, one-shot timer events never get reported:

Pelr.pm:
- calls timer_triggered,
- which cancels,
- which sets active to 0,
- then calls trigger
- which returns becasue active is 0

and callback never gets invoked.

Maybe my reading of the sourcecode is wrong, but I can't for the life of it
get any timer event out of stem.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg@goof.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