diff options
author | Skip Montanaro <skip@pobox.com> | 2002-09-03 20:19:06 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2002-09-03 20:19:06 (GMT) |
commit | 99dba27e9a671693710128c0cfb5ed6686cda79b (patch) | |
tree | 9e7895a45a4421b13117454a3add7ff190e5bf29 /Python/ceval.c | |
parent | d581d7792bc31e6249ee6ed20bc2a71f53f0d3bb (diff) | |
download | cpython-99dba27e9a671693710128c0cfb5ed6686cda79b.zip cpython-99dba27e9a671693710128c0cfb5ed6686cda79b.tar.gz cpython-99dba27e9a671693710128c0cfb5ed6686cda79b.tar.bz2 |
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.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 8b3823a0..6364c3f 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -469,8 +469,8 @@ static int unpack_iterable(PyObject *, int, PyObject **); /* 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) |