LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Marc Lehmann Date: Fri Apr 25 23:04:59 2008 Subject: Re: benchmarking various event loops with and without anyevent
On Sat, Apr 26, 2008 at 07:01:39AM +0200, Marc Lehmann <schmorp@schmorp.de> 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 --==---/ / _ \/ // /\ \/ / 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 |