Mercurial > vim
comparison src/proto/list.pro @ 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 | 0ad8b72af148 |
children | da670b1549b3 |
comparison
equal
deleted
inserted
replaced
30565:ce8e4c9cc95a | 30566:b3de17181c19 |
---|---|
50 int write_list(FILE *fd, list_T *list, int binary); | 50 int write_list(FILE *fd, list_T *list, int binary); |
51 void init_static_list(staticList10_T *sl); | 51 void init_static_list(staticList10_T *sl); |
52 void f_list2str(typval_T *argvars, typval_T *rettv); | 52 void f_list2str(typval_T *argvars, typval_T *rettv); |
53 void f_sort(typval_T *argvars, typval_T *rettv); | 53 void f_sort(typval_T *argvars, typval_T *rettv); |
54 void f_uniq(typval_T *argvars, typval_T *rettv); | 54 void f_uniq(typval_T *argvars, typval_T *rettv); |
55 int filter_map_one(typval_T *tv, typval_T *expr, filtermap_T filtermap, typval_T *newtv, int *remp); | 55 int filter_map_one(typval_T *tv, typval_T *expr, filtermap_T filtermap, funccall_T *fc, typval_T *newtv, int *remp); |
56 void f_filter(typval_T *argvars, typval_T *rettv); | 56 void f_filter(typval_T *argvars, typval_T *rettv); |
57 void f_map(typval_T *argvars, typval_T *rettv); | 57 void f_map(typval_T *argvars, typval_T *rettv); |
58 void f_mapnew(typval_T *argvars, typval_T *rettv); | 58 void f_mapnew(typval_T *argvars, typval_T *rettv); |
59 void f_add(typval_T *argvars, typval_T *rettv); | 59 void f_add(typval_T *argvars, typval_T *rettv); |
60 void f_count(typval_T *argvars, typval_T *rettv); | 60 void f_count(typval_T *argvars, typval_T *rettv); |