1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

core: use size of 32 for hashtables (instead of 4, 8 or 16)

A size of 32 will use a little more memory but will reduce collisions in key
hashs, and then length of linked lists inside hash structure (faster search in
hashtable).
This commit is contained in:
Sebastien Helleu
2013-01-26 19:26:43 +01:00
parent f4dce04723
commit 25eaec3864
16 changed files with 40 additions and 40 deletions
+2 -2
View File
@@ -556,7 +556,7 @@ script_action_install (int quiet)
NULL);
if (filename)
{
options = weechat_hashtable_new (8,
options = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -986,7 +986,7 @@ script_action_show (const char *name, int quiet)
".repository");
if (filename)
{
options = weechat_hashtable_new (8,
options = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,