1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

core: use a sorted arraylist for partial completions

With a sorted list, the partial completion is about 50x faster
(like other completions).
This commit is contained in:
Sébastien Helleu
2014-09-01 23:38:53 +02:00
parent f0aa0a21b2
commit 7f4d9de255
+1 -1
View File
@@ -923,7 +923,7 @@ gui_completion_partial_build_list (struct t_gui_completion *completion,
if (!completion->list || (completion->list->size == 0))
return;
list_temp = arraylist_new (completion->list->size, 0, 0,
list_temp = arraylist_new (completion->list->size, 1, 0,
&gui_completion_word_compare_cb, NULL,
&gui_completion_word_free_cb, NULL);
if (!list_temp)