summaryrefslogtreecommitdiffstats
path: root/Include/stringobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-07-30 16:42:03 (GMT)
committerGuido van Rossum <guido@python.org>1996-07-30 16:42:03 (GMT)
commitfdebf257055f7fe1a3381544df1eded7092b646f (patch)
tree8102126c57f29c2878961925b520a13f7e14c6ac /Include/stringobject.h
parentdb3b04104aec9a7cf6400d886f6f991cfd1524e3 (diff)
downloadcpython-fdebf257055f7fe1a3381544df1eded7092b646f.zip
cpython-fdebf257055f7fe1a3381544df1eded7092b646f.tar.gz
cpython-fdebf257055f7fe1a3381544df1eded7092b646f.tar.bz2
Turn on CACHE_HASH, for 2% speedier dict lookups
Diffstat (limited to 'Include/stringobject.h')
-rw-r--r--Include/stringobject.h3
1 files changed, 3 insertions, 0 deletions
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 @@ 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