summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-10-01 15:25:53 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-10-01 15:25:53 (GMT)
commit77e8bf1ca48f15780c7724910236d8ebb1da3c33 (patch)
treed12b2c2a05973acdeaa4ef3ddf0ba6c05b3a74ef /Modules
parent4ca4c7c8ccb681067d18fad063a3423fafc4d6f3 (diff)
downloadcpython-77e8bf1ca48f15780c7724910236d8ebb1da3c33.zip
cpython-77e8bf1ca48f15780c7724910236d8ebb1da3c33.tar.gz
cpython-77e8bf1ca48f15780c7724910236d8ebb1da3c33.tar.bz2
Restore the block length and add a comment.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/collectionsmodule.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/collectionsmodule.c b/Modules/collectionsmodule.c
index 27236d9..e52a6a5 100644
--- a/Modules/collectionsmodule.c
+++ b/Modules/collectionsmodule.c
@@ -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.