1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-05 02:00:25 +08:00

reduce dictpool size

This commit is contained in:
fumiama
2022-01-03 13:41:28 +08:00
parent dad02a4081
commit 5075c822bf

View File

@@ -51,7 +51,7 @@ static CONFIG* cfg;
static pthread_attr_t attr;
// DICTPOOLBYTE must lower than 4*8 = 32
#define DICTPOOLBIT 24
#define DICTPOOLBIT 16
#define DICTPOOLSZ (((uint32_t)-1)>>((sizeof(uint32_t)*8-DICTPOOLBIT)))
static DICT* dict_pool[DICTPOOLSZ+1];