forked from aniani/vim
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:
@@ -3743,7 +3743,7 @@ match_add(
|
||||
listitem_T *li;
|
||||
int i;
|
||||
|
||||
range_list_materialize(pos_list);
|
||||
CHECK_LIST_MATERIALIZE(pos_list);
|
||||
for (i = 0, li = pos_list->lv_first; li != NULL && i < MAXPOSMATCH;
|
||||
i++, li = li->li_next)
|
||||
{
|
||||
|
Reference in New Issue
Block a user