Turn on CACHE_HASH, for 2% speedier dict lookups

This commit is contained in:
Guido van Rossum 1996-07-30 16:42:03 +00:00
parent db3b04104a
commit fdebf25705

View file

@ -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