From: Raymond Hettinger Date: Fri, 1 Oct 2004 15:25:53 +0000 (+0000) Subject: Restore the block length and add a comment. X-Git-Tag: v2.4b1~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77e8bf1ca48f15780c7724910236d8ebb1da3c33;p=thirdparty%2FPython%2Fcpython.git Restore the block length and add a comment. --- diff --git a/Modules/collectionsmodule.c b/Modules/collectionsmodule.c index 27236d9abe05..e52a6a59d881 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.