From fdebf257055f7fe1a3381544df1eded7092b646f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 30 Jul 1996 16:42:03 +0000 Subject: [PATCH] Turn on CACHE_HASH, for 2% speedier dict lookups --- Include/stringobject.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Include/stringobject.h b/Include/stringobject.h index f5ebe78ee77..d6180db010d 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