aboutsummaryrefslogtreecommitdiff
path: root/src/common/mempool.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-04-23 14:42:27 +0000
committerNick Mathewson <nickm@torproject.org>2007-04-23 14:42:27 +0000
commit2f4784cbd8901a59cb20b10d247ad383b8539152 (patch)
tree336d1cd90e530e64b70823c0cdae2b5a978ac7b1 /src/common/mempool.c
parentbc0b78bc10876cca576c6b75ee8b39b529a8ad91 (diff)
downloadtor-2f4784cbd8901a59cb20b10d247ad383b8539152.tar
tor-2f4784cbd8901a59cb20b10d247ad383b8539152.tar.gz
r12499@catbus: nickm | 2007-04-23 10:42:23 -0400
Keep a freelist of unused 4k buffer chunks, rather than wasting 8k for every inactive connection_t. svn:r10006
Diffstat (limited to 'src/common/mempool.c')
-rw-r--r--src/common/mempool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mempool.c b/src/common/mempool.c
index dcdb27c3c..feb32230b 100644
--- a/src/common/mempool.c
+++ b/src/common/mempool.c
@@ -377,7 +377,7 @@ mp_pool_new(size_t item_size, size_t chunk_capacity)
}
/** If there are more than <b>n</b> empty chunks in <b>pool</b>, free the
- * exces ones that have been empty for the longest. (If <b>n</b> is less
+ * excess ones that have been empty for the longest. (If <b>n</b> is less
* than zero, free only empty chunks that were not used since the last
* call to mp_pool_clean(), leaving only -<b>n</b>.) */
void