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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user