[Mono-bugs] [Bug 65734][Nor] Changed - System.Threading.Timer 20x slower than MSFT's
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Jul 31 06:36:47 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bmaurer at users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=65734
--- shadow/65734 2006-07-31 06:33:58.000000000 -0400
+++ shadow/65734.tmp.23680 2006-07-31 06:36:47.000000000 -0400
@@ -76,6 +76,18 @@
+ void log(string str) {
+ if (Environment.GetEnvironmentVariable("MONO_TIMER_DEBUG") != null)
Should probably be cached.
+
+------- Additional Comments From bmaurer at users.sf.net 2006-07-31 06:36 -------
+Never mind this comment:
+
+THis is *really* *really* dubious. You need to do something like
+"calcuate the next time you will wake up, and wait on an object with
+that timeout. Pulse the object if a new timer is added". This will
+wake up the CPU far too often, and (for example) waste battery power.
+It is a blocker for this patch.
+
+The sleep is dubious, but it's not polling the cpu like i thought it
+was. It's 3 am here ;-)
More information about the mono-bugs
mailing list