[Python-checkins] python/dist/src/Python ceval.c,2.334,2.335
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
Tue, 03 Sep 2002 13:19:10 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv7138
Modified Files:
ceval.c
Log Message:
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.
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.334
retrieving revision 2.335
diff -C2 -d -r2.334 -r2.335
*** ceval.c 3 Sep 2002 20:10:44 -0000 2.334
--- ceval.c 3 Sep 2002 20:19:06 -0000 2.335
***************
*** 470,475 ****
/* 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;
PyObject *
--- 470,475 ----
/* for manipulating the thread switch and periodic "stuff" - used to be
per thread, now just a pair o' globals */
! int _Py_CheckInterval = 100;
! volatile int _Py_Ticker = 100;
PyObject *