Re: benchmarking various event loops with and without anyevent

[email protected] (Marc Lehmann) Sat, 26 Apr 2008 08:43:48 +0200
Newsgroups perl.loop
Message-ID <[email protected]>
On Sat, Apr 26, 2008 at 01:14:07AM -0400, Uri Guttman <[email protected]> wrote:
> >>>>> "ML" == Marc Lehmann <[email protected]> writes:
> 
>   ML> On Fri, Apr 25, 2008 at 11:40:03PM -0400, Uri Guttman <[email protected]> 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
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\