diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-04-23 14:42:27 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-04-23 14:42:27 +0000 |
commit | 2f4784cbd8901a59cb20b10d247ad383b8539152 (patch) | |
tree | 336d1cd90e530e64b70823c0cdae2b5a978ac7b1 /src/common | |
parent | bc0b78bc10876cca576c6b75ee8b39b529a8ad91 (diff) | |
download | tor-2f4784cbd8901a59cb20b10d247ad383b8539152.tar.gz tor-2f4784cbd8901a59cb20b10d247ad383b8539152.zip |
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')
-rw-r--r-- | src/common/mempool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mempool.c b/src/common/mempool.c index dcdb27c3c7..feb32230b1 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 |