]> granicus.if.org Git - python/commitdiff
Restore the block length and add a comment.
authorRaymond Hettinger <python@rcn.com>
Fri, 1 Oct 2004 15:25:53 +0000 (15:25 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 1 Oct 2004 15:25:53 +0000 (15:25 +0000)
Modules/collectionsmodule.c

index 27236d9abe057ef08bfea1609db9c3470f281e5a..e52a6a59d88174fb809ace4dffe6b42084cf1b20 100644 (file)
@@ -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.