From 28de06b8e654800bb1221467d6c8cbbf8d19987d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 11 Apr 2007 00:30:29 +0000 Subject: r12337@catbus: nickm | 2007-04-10 17:55:26 -0400 Add support for using memory pools to allocate queued cell; pass --disable-cell-pool to configure to disable this. svn:r9939 --- src/common/mempool.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common') diff --git a/src/common/mempool.c b/src/common/mempool.c index 853c2b371a..39bcbfc705 100644 --- a/src/common/mempool.c +++ b/src/common/mempool.c @@ -7,6 +7,10 @@ #define MEMPOOL_PRIVATE #include "mempool.h" +/* OVERVIEW: + * DOCDOC + */ + /* DRAWBACKS: * - Not even slightly threadsafe. * - Likes to have lots of items per chunks. @@ -17,6 +21,7 @@ * if you need doubles. * - Could probably be optimized a bit; the representation contains * a bit more info than it really needs to have. + * - probably, chunks should always be a power of 2. */ /* NOTES: -- cgit v1.2.3-54-g00ecf