mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0751: Vim9: performance can be improved
Problem: Vim9: performance can be improved. Solution: Don't call break. Inline check for list materialize. Make an inline version of ga_grow().
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user