optimizate: session table support overwrite HASH_INITIAL_NUM_BUCKETS

This commit is contained in:
luwenpeng
2024-08-12 15:32:37 +08:00
parent 8054b9c032
commit 0414710399
2 changed files with 3 additions and 0 deletions

View File

@@ -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 */