Re: benchmarking various event loops with and without anyevent

[email protected] (Marc Lehmann) Sat, 26 Apr 2008 07:04:59 +0200
Newsgroups perl.loop
Message-ID <[email protected]>
On Sat, Apr 26, 2008 at 07:01:39AM +0200, Marc Lehmann <[email protected]> wrote:
> And another one:

does Stem deal with subsecond delay values? Under what circumstances?
AnyEvent guarantees subsecond accuracy currently.

Also:

   The ’hard’ attribute means that the next interval delay starts
   before the callback to the object is made. If a soft timer is selected
   (hard is 0), the delay starts after the callback returns. So the hard
   timer ignores the time taken by the callback and so it is a more
   accurate timer. The accuracy a soft timer is affected by how much time
   the callback takes.

It is nice to have a hard timer, but please implement clumping. Not
implementing clumping makes this type of timer completely unusable in
practise, as a time jump or stopping the program for a long time has makes
it potentially unusable.

(In fact, this inability to use Event's hard timers was one of the reasons
I was looking for a different event loop. EV doesn't do clumping, however,
as it has two timer types that solve time-jump and stopping-related
problems diferently).

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\