optimizate: session table support overwrite HASH_INITIAL_NUM_BUCKETS
This commit is contained in:
2
deps/uthash/uthash.h
vendored
2
deps/uthash/uthash.h
vendored
@@ -129,7 +129,9 @@ do {
|
||||
#endif
|
||||
|
||||
/* initial number of buckets */
|
||||
#ifndef HASH_INITIAL_NUM_BUCKETS
|
||||
#define HASH_INITIAL_NUM_BUCKETS 32U /* initial number of buckets */
|
||||
#endif
|
||||
#define HASH_INITIAL_NUM_BUCKETS_LOG2 5U /* lg2 of initial number of buckets */
|
||||
#define HASH_BKT_CAPACITY_THRESH 10U /* expand when bucket count reaches */
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <assert.h>
|
||||
|
||||
#define HASH_INITIAL_NUM_BUCKETS 32768U // initial number of buckets
|
||||
#define HASH_FUNCTION(keyptr, keylen, hashv) HASH_FUNCTION_OVERWRITE(keyptr, keylen, &hashv)
|
||||
#define HASH_KEYCMP(a, b, len) HASH_KEYCMP_OVERWRITE(a, b, len)
|
||||
#include "session_def.h"
|
||||
|
||||
Reference in New Issue
Block a user