From: Guido van Rossum Date: Tue, 30 Jul 1996 16:42:03 +0000 (+0000) Subject: Turn on CACHE_HASH, for 2% speedier dict lookups X-Git-Tag: v1.4b2~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdebf257055f7fe1a3381544df1eded7092b646f;p=python Turn on CACHE_HASH, for 2% speedier dict lookups --- diff --git a/Include/stringobject.h b/Include/stringobject.h index f5ebe78ee7..d6180db010 100644 --- a/Include/stringobject.h +++ b/Include/stringobject.h @@ -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