mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-12 22:40:50 +08:00
reduce dictpool size
This commit is contained in:
2
server.c
2
server.c
@@ -51,7 +51,7 @@ static CONFIG* cfg;
|
|||||||
static pthread_attr_t attr;
|
static pthread_attr_t attr;
|
||||||
|
|
||||||
// DICTPOOLBYTE must lower than 4*8 = 32
|
// DICTPOOLBYTE must lower than 4*8 = 32
|
||||||
#define DICTPOOLBIT 24
|
#define DICTPOOLBIT 16
|
||||||
#define DICTPOOLSZ (((uint32_t)-1)>>((sizeof(uint32_t)*8-DICTPOOLBIT)))
|
#define DICTPOOLSZ (((uint32_t)-1)>>((sizeof(uint32_t)*8-DICTPOOLBIT)))
|
||||||
static DICT* dict_pool[DICTPOOLSZ+1];
|
static DICT* dict_pool[DICTPOOLSZ+1];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user