diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-13 22:44:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-13 22:44:22 +0200 |
commit | 7e9f351b2e69b498c4ee5004d7459844e1ba191a (patch) | |
tree | df0c0e40b5bf9ef43d9b1289573515f9de9d79a6 /src/insexpand.c | |
parent | 37d1b4f9416973abe9f5a7c6b81540ca88fa8489 (diff) | |
download | vim-git-7e9f351b2e69b498c4ee5004d7459844e1ba191a.tar.gz |
patch 8.2.0751: Vim9: performance can be improvedv8.2.0751
Problem: Vim9: performance can be improved.
Solution: Don't call break. Inline check for list materialize. Make an
inline version of ga_grow().
Diffstat (limited to 'src/insexpand.c')
-rw-r--r-- | src/insexpand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insexpand.c b/src/insexpand.c index bd809b0e6..6963baf98 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -2334,7 +2334,7 @@ ins_compl_add_list(list_T *list) int dir = compl_direction; // Go through the List with matches and add each of them. - range_list_materialize(list); + CHECK_LIST_MATERIALIZE(list); FOR_ALL_LIST_ITEMS(list, li) { if (ins_compl_add_tv(&li->li_tv, dir) == OK) @@ -2519,7 +2519,7 @@ get_complete_info(list_T *what_list, dict_T *retdict) else { what_flag = 0; - range_list_materialize(what_list); + CHECK_LIST_MATERIALIZE(what_list); FOR_ALL_LIST_ITEMS(what_list, item) { char_u *what = tv_get_string(&item->li_tv); |