diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-01-26 19:26:43 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-01-26 19:26:43 +0100 |
commit | 25eaec3864a7ffe48b042057f8c07da26b676337 (patch) | |
tree | 05da43a9e66a6b1b4db6551689a61d8acc8cd21c /src/gui/gui-buffer.c | |
parent | f4dce0472391432e8af4f2c0e39401d90cb86737 (diff) | |
download | weechat-25eaec3864a7ffe48b042057f8c07da26b676337.zip |
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).
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r-- | src/gui/gui-buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 0342ecdb7..98a400222 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -546,7 +546,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin, new_buffer->highlight_tags_array = NULL; /* hotlist */ - new_buffer->hotlist_max_level_nicks = hashtable_new (8, + new_buffer->hotlist_max_level_nicks = hashtable_new (32, WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_INTEGER, NULL, @@ -558,7 +558,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin, new_buffer->keys_count = 0; /* local variables */ - new_buffer->local_variables = hashtable_new (8, + new_buffer->local_variables = hashtable_new (32, WEECHAT_HASHTABLE_STRING, WEECHAT_HASHTABLE_STRING, NULL, |