summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-05-24 15:01:36 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-05-24 15:04:24 +0200
commit323a19d73a9587cd0a70ad8ce627d569132a694c (patch)
treef30aa016654f3d6b0458743502172a4785e5fd97 /src
parent02b1fe99261c33a8c775b12c6c61987f0db551b4 (diff)
downloadweechat-323a19d73a9587cd0a70ad8ce627d569132a694c.zip
buflist: increase size of hashtables used for string evaluation (issue #998)
This should make refresh of buflist bar item a bit faster.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/buflist/buflist-bar-item.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c
index 38c0a21e7..17a005ff1 100644
--- a/src/plugins/buflist/buflist-bar-item.c
+++ b/src/plugins/buflist/buflist-bar-item.c
@@ -379,7 +379,7 @@ buflist_bar_item_init ()
{
/* create hashtables used by the bar item callback */
buflist_hashtable_pointers = weechat_hashtable_new (
- 8,
+ 32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_POINTER,
NULL,
@@ -388,7 +388,7 @@ buflist_bar_item_init ()
return 0;
buflist_hashtable_extra_vars = weechat_hashtable_new (
- 32,
+ 128,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -400,7 +400,7 @@ buflist_bar_item_init ()
}
buflist_hashtable_options = weechat_hashtable_new (
- 8,
+ 32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
@@ -414,7 +414,7 @@ buflist_bar_item_init ()
weechat_hashtable_set (buflist_hashtable_options, "extra", "eval");
buflist_hashtable_options_conditions = weechat_hashtable_new (
- 8,
+ 32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL, NULL);