summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-08-12 15:32:37 +0800
committerluwenpeng <[email protected]>2024-08-12 15:32:37 +0800
commit0414710399c7ff64b3ea0128cc39dc4d37d6e0a7 (patch)
tree218070dda1eb1629d2de9ebe054ecba0ca1900b6 /deps
parent8054b9c032393ed567aaacb902562e7fd084a866 (diff)
optimizate: session table support overwrite HASH_INITIAL_NUM_BUCKETS
Diffstat (limited to 'deps')
-rw-r--r--deps/uthash/uthash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/uthash/uthash.h b/deps/uthash/uthash.h
index 68693bf..9572e48 100644
--- a/deps/uthash/uthash.h
+++ b/deps/uthash/uthash.h
@@ -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 */