On Thu, Jun 02, 2011 at 01:55:43AM +0400, Alexey Borzenkov <[email protected]> 
wrote:
> This patch works around the problem with some ev_timer timeout values
> causing extreme cpu load on win32, that at the moment is observed at
> least on WinXP virtual machine under Parallels (ev_time is ticking at
> 64Hz in that case, compared to 2000Hz on Windows 7 physical machine).

Thanks...

Can you try whether the constants 1e-5 or 1e-6 work as fudge? That should
be all that is required for this case, unless the win32 select is broken
w.r.t. timeouts.

The fudge factor/offset depends on the syscall only, so no dynamic
measurement should be required except on (very) broken platforms.

If select turns out to be too broken, then some workaround like you gave
might well be requried for windows - this is not really a problem, as we
work around a great number of bugs in windows's select already, one more
is not going to be an issue.

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

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to