]> granicus.if.org Git - python/commitdiff
Turn on CACHE_HASH, for 2% speedier dict lookups
authorGuido van Rossum <guido@python.org>
Tue, 30 Jul 1996 16:42:03 +0000 (16:42 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 30 Jul 1996 16:42:03 +0000 (16:42 +0000)
Include/stringobject.h

index f5ebe78ee773bf3269a3335c3c2e765f73430fef..d6180db010da8d7170618be884cdf3e12cf886e7 100644 (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