Mercurial > vim
comparison src/proto/strings.pro @ 30425:6c2bbd7d9217 v9.0.0548
patch 9.0.0548: reduce() with a compiled lambda could be faster
Commit: https://github.com/vim/vim/commit/f1c60d4bf10794265b828afd9c5f7eddacada10b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 22 17:07:00 2022 +0100
patch 9.0.0548: reduce() with a compiled lambda could be faster
Problem: reduce() with a compiled lambda could be faster.
Solution: Call eval_expr_typval() instead of call_func() directly.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 22 Sep 2022 18:15:03 +0200 |
parents | 2126feddeda6 |
children | d605a50e7623 |
comparison
equal
deleted
inserted
replaced
30424:1a518a4bf1fd | 30425:6c2bbd7d9217 |
---|---|
21 int has_non_ascii(char_u *s); | 21 int has_non_ascii(char_u *s); |
22 char_u *concat_str(char_u *str1, char_u *str2); | 22 char_u *concat_str(char_u *str1, char_u *str2); |
23 char_u *string_quote(char_u *str, int function); | 23 char_u *string_quote(char_u *str, int function); |
24 long string_count(char_u *haystack, char_u *needle, int ic); | 24 long string_count(char_u *haystack, char_u *needle, int ic); |
25 void string_filter_map(char_u *str, filtermap_T filtermap, typval_T *expr, typval_T *rettv); | 25 void string_filter_map(char_u *str, filtermap_T filtermap, typval_T *expr, typval_T *rettv); |
26 void string_reduce(typval_T *argvars, char_u *func_name, funcexe_T *funcexe, typval_T *rettv); | 26 void string_reduce(typval_T *argvars, typval_T *expr, typval_T *rettv); |
27 void f_byteidx(typval_T *argvars, typval_T *rettv); | 27 void f_byteidx(typval_T *argvars, typval_T *rettv); |
28 void f_byteidxcomp(typval_T *argvars, typval_T *rettv); | 28 void f_byteidxcomp(typval_T *argvars, typval_T *rettv); |
29 void f_charidx(typval_T *argvars, typval_T *rettv); | 29 void f_charidx(typval_T *argvars, typval_T *rettv); |
30 void f_str2list(typval_T *argvars, typval_T *rettv); | 30 void f_str2list(typval_T *argvars, typval_T *rettv); |
31 void f_str2nr(typval_T *argvars, typval_T *rettv); | 31 void f_str2nr(typval_T *argvars, typval_T *rettv); |