From 2f4784cbd8901a59cb20b10d247ad383b8539152 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 23 Apr 2007 14:42:27 +0000 Subject: 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 --- src/common/mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') 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 n empty chunks in pool, free the - * exces ones that have been empty for the longest. (If n is less + * excess ones that have been empty for the longest. (If n is less * than zero, free only empty chunks that were not used since the last * call to mp_pool_clean(), leaving only -n.) */ void -- cgit v1.2.3