From a05f374f4d36b75b2c1433f61b5a35570e82e0fa Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 22 Feb 2016 14:10:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9str2int=5Fmap=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B=E5=AE=89=E5=85=A8=E6=A8=A1=E5=BC=8F=E7=9A=84=E5=B9=B6?= =?UTF-8?q?=E5=8F=91=E9=94=81=E6=95=B0=E9=87=8F=EF=BC=8Cthread=5Fsafe?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/map_str2int.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entry/map_str2int.cpp b/src/entry/map_str2int.cpp index 8cad88d..66ec288 100644 --- a/src/entry/map_str2int.cpp +++ b/src/entry/map_str2int.cpp @@ -22,7 +22,7 @@ MESA_htable_handle map_create(void) MESA_htable_handle string2int_map; MESA_htable_create_args_t hargs; memset(&hargs,0,sizeof(hargs)); - hargs.thread_safe=1; + hargs.thread_safe=8; hargs.hash_slot_size = 4*1024; hargs.max_elem_num = 0; hargs.eliminate_type = HASH_ELIMINATE_ALGO_LRU;