mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									d581d7792b
								
							
						
					
					
						commit
						99dba27e9a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -469,8 +469,8 @@ static int unpack_iterable(PyObject *, int, PyObject **); | ||||||
| 
 | 
 | ||||||
| /* for manipulating the thread switch and periodic "stuff" - used to be
 | /* for manipulating the thread switch and periodic "stuff" - used to be
 | ||||||
|    per thread, now just a pair o' globals */ |    per thread, now just a pair o' globals */ | ||||||
| int _Py_CheckInterval = 10; | int _Py_CheckInterval = 100; | ||||||
| volatile int _Py_Ticker = 10; | volatile int _Py_Ticker = 100; | ||||||
| 
 | 
 | ||||||
| PyObject * | PyObject * | ||||||
| PyEval_EvalCode(PyCodeObject *co, PyObject *globals, PyObject *locals) | PyEval_EvalCode(PyCodeObject *co, PyObject *globals, PyObject *locals) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Skip Montanaro
						Skip Montanaro