comparison src/evalvars.c @ 20392:4c317d8c1051 v8.2.0751

patch 8.2.0751: Vim9: performance can be improved Commit: https://github.com/vim/vim/commit/7e9f351b2e69b498c4ee5004d7459844e1ba191a Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 13 22:44:22 2020 +0200 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().
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 May 2020 22:45:04 +0200
parents 7587d892c00c
children c225be44692a
comparison
equal deleted inserted replaced
20391:9ceee4daa596 20392:4c317d8c1051
861 { 861 {
862 emsg(_("E688: More targets than List items")); 862 emsg(_("E688: More targets than List items"));
863 return FAIL; 863 return FAIL;
864 } 864 }
865 865
866 range_list_materialize(l); 866 CHECK_LIST_MATERIALIZE(l);
867 item = l->lv_first; 867 item = l->lv_first;
868 while (*arg != ']') 868 while (*arg != ']')
869 { 869 {
870 arg = skipwhite(arg + 1); 870 arg = skipwhite(arg + 1);
871 arg = ex_let_one(arg, &item->li_tv, TRUE, flags, (char_u *)",;]", op); 871 arg = ex_let_one(arg, &item->li_tv, TRUE, flags, (char_u *)",;]", op);