commit | fdebf257055f7fe1a3381544df1eded7092b646f | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Jul 30 16:42:03 1996 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Jul 30 16:42:03 1996 +0000 |
tree | 8102126c57f29c2878961925b520a13f7e14c6ac | |
parent | db3b04104aec9a7cf6400d886f6f991cfd1524e3 [diff] |
Turn on CACHE_HASH, for 2% speedier dict lookups
diff --git a/Include/stringobject.h b/Include/stringobject.h index f5ebe78..d6180db 100644 --- a/Include/stringobject.h +++ b/Include/stringobject.h
@@ -47,6 +47,9 @@ /* 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