diff options
author | dormando <dormando@rydia.net> | 2011-09-28 14:09:59 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2011-09-28 14:09:59 -0700 |
commit | 1db1de38283fdd3f5cdc556ac9ca9cb05892a75d (patch) | |
tree | 7ed5d308e6e728b08dc6bb4f547e1c5e7687c028 /assoc.h | |
parent | 108e2cd600ed2c698222b4ac7d90301c23d4810a (diff) | |
download | memcached-1db1de38283fdd3f5cdc556ac9ca9cb05892a75d.tar.gz |
Allow setting initial size of the hash table
Instances which run many millions of items can now have its hash table
presized. This can avoid some minor memory churn during the warmup
period.
Diffstat (limited to 'assoc.h')
-rw-r--r-- | assoc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* associative array */ -void assoc_init(void); +void assoc_init(const int hashpower_init); item *assoc_find(const char *key, const size_t nkey); int assoc_insert(item *item); void assoc_delete(const char *key, const size_t nkey); |