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/filepath.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/filepath.c')
-rw-r--r-- | src/filepath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filepath.c b/src/filepath.c index 81f90c339..27a26e5ed 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -1917,7 +1917,7 @@ f_writefile(typval_T *argvars, typval_T *rettv) list = argvars[0].vval.v_list; if (list == NULL) return; - range_list_materialize(list); + CHECK_LIST_MATERIALIZE(list); FOR_ALL_LIST_ITEMS(list, li) if (tv_get_string_chk(&li->li_tv) == NULL) return; |