aboutsummaryrefslogtreecommitdiff
path: root/src/common/mempool.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-04-11 00:30:29 +0000
committerNick Mathewson <nickm@torproject.org>2007-04-11 00:30:29 +0000
commit28de06b8e654800bb1221467d6c8cbbf8d19987d (patch)
treea597073932f1ae8407acce3898d103821571723f /src/common/mempool.c
parent6ba0b0e9f46cedfa83813f1faf63ab4a24456e4d (diff)
downloadtor-28de06b8e654800bb1221467d6c8cbbf8d19987d.tar.gz
tor-28de06b8e654800bb1221467d6c8cbbf8d19987d.zip
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
Diffstat (limited to 'src/common/mempool.c')
-rw-r--r--src/common/mempool.c5
1 files changed, 5 insertions, 0 deletions
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: