comparison src/filepath.c @ 30566:b3de17181c19 v9.0.0618

patch 9.0.0618: calling function for reduce() has too much overhead Commit: https://github.com/vim/vim/commit/82418263fa91792e851cb0de879d1595327d5531 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 28 16:16:15 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 28 Sep 2022 17:30:04 +0200
parents 0fe61fa4e5d1
children 37aa9fd2ed72
comparison
equal deleted inserted replaced
30565:ce8e4c9cc95a 30566:b3de17181c19
1607 set_vim_var_dict(VV_VAL, dict); 1607 set_vim_var_dict(VV_VAL, dict);
1608 argv[0].v_type = VAR_DICT; 1608 argv[0].v_type = VAR_DICT;
1609 argv[0].vval.v_dict = dict; 1609 argv[0].vval.v_dict = dict;
1610 } 1610 }
1611 1611
1612 if (eval_expr_typval(expr, argv, 1, &rettv) == FAIL) 1612 if (eval_expr_typval(expr, argv, 1, NULL, &rettv) == FAIL)
1613 goto theend; 1613 goto theend;
1614 1614
1615 // We want to use -1, but also true/false should be allowed. 1615 // We want to use -1, but also true/false should be allowed.
1616 if (rettv.v_type == VAR_SPECIAL || rettv.v_type == VAR_BOOL) 1616 if (rettv.v_type == VAR_SPECIAL || rettv.v_type == VAR_BOOL)
1617 { 1617 {