mirror of https://github.com/python/cpython
Turn on CACHE_HASH, for 2% speedier dict lookups
This commit is contained in:
parent
db3b04104a
commit
fdebf25705
|
@ -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 */
|
/* 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 {
|
typedef struct {
|
||||||
PyObject_VAR_HEAD
|
PyObject_VAR_HEAD
|
||||||
#ifdef CACHE_HASH
|
#ifdef CACHE_HASH
|
||||||
|
|
Loading…
Reference in New Issue