[Python-checkins]
python/dist/src/Modules collectionsmodule.c, 1.29, 1.30
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Fri Oct 1 17:25:55 CEST 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28798
Modified Files:
collectionsmodule.c
Log Message:
Restore the block length and add a comment.
Index: collectionsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/collectionsmodule.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- collectionsmodule.c 1 Oct 2004 15:14:39 -0000 1.29
+++ collectionsmodule.c 1 Oct 2004 15:25:53 -0000 1.30
@@ -7,7 +7,13 @@
All rights reserved.
*/
-#define BLOCKLEN 2
+/* The block length may be set to any number over 1. Larger numbers
+ * reduce the number of calls to the memory allocator but take more
+ * memory. Ideally, BLOCKLEN should be set with an eye to the
+ * length of a cache line.
+ */
+
+#define BLOCKLEN 46
#define CENTER ((BLOCKLEN - 1) / 2)
/* A `dequeobject` is composed of a doubly-linked list of `block` nodes.
More information about the Python-checkins
mailing list