From 7e9f351b2e69b498c4ee5004d7459844e1ba191a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 13 May 2020 22:44:22 +0200 Subject: 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(). --- src/evalbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/evalbuffer.c') diff --git a/src/evalbuffer.c b/src/evalbuffer.c index f11727c78..adbbca3f7 100644 --- a/src/evalbuffer.c +++ b/src/evalbuffer.c @@ -183,7 +183,7 @@ set_buffer_lines( rettv->vval.v_number = 1; // FAIL goto done; } - range_list_materialize(l); + CHECK_LIST_MATERIALIZE(l); li = l->lv_first; } else -- cgit v1.2.1