diff Include/stringobject.h @ 3833:f0efff28a24d legacy-trunk

Turn on CACHE_HASH, for 2% speedier dict lookups
author Guido van Rossum <guido@python.org>
date Tue, 30 Jul 1996 16:42:03 +0000
parents fa98dda07877
children 65d2d8e67da3
line wrap: on
line diff
--- a/Include/stringobject.h	Tue Jul 30 16:41:26 1996 +0000
+++ b/Include/stringobject.h	Tue Jul 30 16:42:03 1996 +0000
@@ -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