增加MESA_htable创建时thread_safe值到512,降低潜在的多线程扫描命中后的冲突概率。
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include "rulescan.h"
|
||||
#include "UniversalBoolMatch.h"
|
||||
|
||||
int MAAT_FRAME_VERSION_1_2_20151019;
|
||||
int MAAT_FRAME_VERSION_1_2_20151103
|
||||
const char *maat_module="MAAT Frame";
|
||||
const char* CHARSET_STRING[]={"CHARSET_NONE","GBK","BIG5","UNICODE","UTF-8"};
|
||||
|
||||
@@ -641,7 +641,7 @@ struct _Maat_scanner_t* create_maat_scanner(unsigned int version,int scan_thread
|
||||
|
||||
MESA_htable_create_args_t hargs;
|
||||
memset(&hargs,0,sizeof(hargs));
|
||||
hargs.thread_safe=1;
|
||||
hargs.thread_safe=512;
|
||||
hargs.hash_slot_size = 1024*1024;
|
||||
hargs.max_elem_num = 0;
|
||||
hargs.eliminate_type = HASH_ELIMINATE_ALGO_LRU;
|
||||
|
||||
Reference in New Issue
Block a user