diff Python/ceval.c @ 25109:00b6dd414b80 legacy-trunk

Bump default check interval to 100 instructions. Computers are much faster than when this interval was first established. Checking too frequently just adds needless overhead because most of the time there is nothing to do and no other threads ready to run.
author Skip Montanaro <skip@pobox.com>
date Tue, 03 Sep 2002 20:19:06 +0000
parents 3a26e352f0a6
children 1e46da1e6522
line wrap: on
line diff
--- a/Python/ceval.c	Tue Sep 03 20:10:45 2002 +0000
+++ b/Python/ceval.c	Tue Sep 03 20:19:06 2002 +0000
@@ -469,8 +469,8 @@
 
 /* for manipulating the thread switch and periodic "stuff" - used to be
    per thread, now just a pair o' globals */
-int _Py_CheckInterval = 10;
-volatile int _Py_Ticker = 10;
+int _Py_CheckInterval = 100;
+volatile int _Py_Ticker = 100;
 
 PyObject *
 PyEval_EvalCode(PyCodeObject *co, PyObject *globals, PyObject *locals)