summaryrefslogtreecommitdiff
path: root/src/filepath.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-13 22:44:22 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-13 22:44:22 +0200
commit7e9f351b2e69b498c4ee5004d7459844e1ba191a (patch)
treedf0c0e40b5bf9ef43d9b1289573515f9de9d79a6 /src/filepath.c
parent37d1b4f9416973abe9f5a7c6b81540ca88fa8489 (diff)
downloadvim-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.c2
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;