diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-04-10 01:44:23 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-04-10 01:44:23 +0000 |
commit | 20cf4d1f096535b3fbc25500d8baced6946d7505 (patch) | |
tree | 3eadaea501a5530a7783cce2430f7af110ad2a4e /src/common/container.c | |
parent | 7a9b39d621085595b2b19091ed44beeba876cbcc (diff) | |
download | tor-20cf4d1f096535b3fbc25500d8baced6946d7505.tar.gz tor-20cf4d1f096535b3fbc25500d8baced6946d7505.zip |
r19283@catbus: nickm | 2008-04-09 21:44:18 -0400
The optimist calls the glass half full. The pessimist calls it half empty. The engineer says it is twice as large as it needs to be. In this case, the engineer says that the default smartlist size is twice as large as it needs to be and wouldn't it be nice to save half a megabyte with a one-line patch?
svn:r14341
Diffstat (limited to 'src/common/container.c')
-rw-r--r-- | src/common/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/container.c b/src/common/container.c index 6d3a8fd5f9..ffb4ffe497 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -30,7 +30,7 @@ const char container_c_id[] = #include "ht.h" /** All newly allocated smartlists have this capacity. */ -#define SMARTLIST_DEFAULT_CAPACITY 32 +#define SMARTLIST_DEFAULT_CAPACITY 16 /** Allocate and return an empty smartlist. */ |