0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.0618: calling function for reduce() has too much overhead

Problem:    Calling function for reduce() has too much overhead.
Solution:   Do not create a funccall_T every time.
This commit is contained in:
Bram Moolenaar
2022-09-28 16:16:15 +01:00
parent 1936c76536
commit 82418263fa
10 changed files with 94 additions and 27 deletions

View File

@@ -1609,7 +1609,7 @@ checkitem_common(void *context, char_u *name, dict_T *dict)
argv[0].vval.v_dict = dict;
}
if (eval_expr_typval(expr, argv, 1, &rettv) == FAIL)
if (eval_expr_typval(expr, argv, 1, NULL, &rettv) == FAIL)
goto theend;
// We want to use -1, but also true/false should be allowed.