mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Turn on CACHE_HASH, for 2% speedier dict lookups
This commit is contained in:
		
							parent
							
								
									db3b04104a
								
							
						
					
					
						commit
						fdebf25705
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -47,6 +47,9 @@ functions should be applied to nil objects.
 | 
			
		|||
 | 
			
		||||
/* NB The type is revealed here only because it is used in dictobject.c */
 | 
			
		||||
 | 
			
		||||
/* Take this out to save 4 bytes per string object and to lose 2% speedup */
 | 
			
		||||
#define CACHE_HASH
 | 
			
		||||
 | 
			
		||||
typedef struct {
 | 
			
		||||
	PyObject_VAR_HEAD
 | 
			
		||||
#ifdef CACHE_HASH
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue