Restore the block length and add a comment.

This commit is contained in:
Raymond Hettinger 2004-10-01 15:25:53 +00:00
parent 4ca4c7c8cc
commit 77e8bf1ca4
1 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,13 @@
All rights reserved. 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) #define CENTER ((BLOCKLEN - 1) / 2)
/* A `dequeobject` is composed of a doubly-linked list of `block` nodes. /* A `dequeobject` is composed of a doubly-linked list of `block` nodes.