diff --git a/HISTORY b/HISTORY index 348650b..b52a53f 100644 --- a/HISTORY +++ b/HISTORY @@ -1,4 +1,7 @@ +Version 1.17 2015-07-13 + * ini_file_reader.c change PJWHash to Time33Hash and increase capacity + Version 1.16 2015-07-01 * fast_mblock add fast_mblock_delay_free * add fast_mpool.h and fast_mpool.c diff --git a/src/ini_file_reader.c b/src/ini_file_reader.c index 33459bf..98c07f0 100644 --- a/src/ini_file_reader.c +++ b/src/ini_file_reader.c @@ -20,7 +20,7 @@ #include "ini_file_reader.h" #define _LINE_BUFFER_SIZE 512 -#define _ALLOC_ITEMS_ONCE 8 +#define _ALLOC_ITEMS_ONCE 32 static int iniDoLoadFromFile(const char *szFilename, \ IniContext *pContext); @@ -38,7 +38,7 @@ static int iniInitContext(IniContext *pContext) memset(pContext, 0, sizeof(IniContext)); pContext->current_section = &pContext->global; - if ((result=hash_init(&pContext->sections, PJWHash, 10, 0.75)) != 0) + if ((result=hash_init(&pContext->sections, Time33Hash, 32, 0.75)) != 0) { logError("file: "__FILE__", line: %d, " \ "hash_init fail, errno: %d, error info: %s", \