summaryrefslogtreecommitdiff
path: root/assoc.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2011-09-28 14:09:59 -0700
committerdormando <dormando@rydia.net>2011-09-28 14:09:59 -0700
commit1db1de38283fdd3f5cdc556ac9ca9cb05892a75d (patch)
tree7ed5d308e6e728b08dc6bb4f547e1c5e7687c028 /assoc.h
parent108e2cd600ed2c698222b4ac7d90301c23d4810a (diff)
downloadmemcached-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/assoc.h b/assoc.h
index dbb1caf..031958b 100644
--- a/assoc.h
+++ b/assoc.h
@@ -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);