[gambit-list] faster process-status polling

Christian christian at pflanze.mine.nu
Thu May 25 12:07:00 EDT 2006


Hello

The 0.2 second sleep in process-status (while waiting for the waidpid
on child to happen) is too big for me. I suggest to make it
considerably smaller. 100 polls per second don't seem very much, or is
the relevant code path costly?

Thanks
Christian.


--- gambc40b17/lib/_io.scm~	2006-01-08 21:38:12.000000000 +0100
+++ gambc40b17/lib/_io.scm	2006-05-25 17:59:33.000000000 +0200
@@ -5234,7 +5234,7 @@
                      ; Polling is evil but fixing this would require
                      ; substantial changes to the I/O subsystem.  We'll
                      ; tackle that in a future release.
-                     (##thread-sleep! 0.2)
+                     (##thread-sleep! 0.01)
                      (loop))
                    (if (##eq? timeout-val (macro-absent-obj))
                      (##raise-unterminated-process-exception




More information about the Gambit-list mailing list