commit | 7e9f351b2e69b498c4ee5004d7459844e1ba191a | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed May 13 22:44:22 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed May 13 22:44:22 2020 +0200 |
tree | df0c0e40b5bf9ef43d9b1289573515f9de9d79a6 | |
parent | 37d1b4f9416973abe9f5a7c6b81540ca88fa8489 [diff] [blame] |
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().
diff --git a/src/eval.c b/src/eval.c index b7003a8..2100d80 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -1449,7 +1449,7 @@ else { // Need a real list here. - range_list_materialize(l); + CHECK_LIST_MATERIALIZE(l); // No need to increment the refcount, it's already set for // the list being used in "tv".