Mercurial > vim
comparison src/proto/misc2.pro @ 34757:63e3334bcadb v9.1.0256
patch 9.1.0256: Finding autocmd events is inefficient
Commit: https://github.com/vim/vim/commit/78d742ab8845578f78039ddd71a6444c6929257c
Author: John Marriott <basilisk@internode.on.net>
Date: Tue Apr 2 20:26:01 2024 +0200
patch 9.1.0256: Finding autocmd events is inefficient
Problem: Finding autocmd events is inefficient
Solution: Use binary search to find events, cache last found events,
avoid use of strlen(), add SessionWritePost autocmd,
fix test_codestyle and avoid endless loop
(John Marriott)
closes: #14287
Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 02 Apr 2024 20:45:03 +0200 |
parents | cc0c4141fb73 |
children |
comparison
equal
deleted
inserted
replaced
34756:317067ddcba2 | 34757:63e3334bcadb |
---|---|
59 int put_bytes(FILE *fd, long_u nr, int len); | 59 int put_bytes(FILE *fd, long_u nr, int len); |
60 int mch_parse_cmd(char_u *cmd, int use_shcf, char ***argv, int *argc); | 60 int mch_parse_cmd(char_u *cmd, int use_shcf, char ***argv, int *argc); |
61 int build_argv_from_string(char_u *cmd, char ***argv, int *argc); | 61 int build_argv_from_string(char_u *cmd, char ***argv, int *argc); |
62 int build_argv_from_list(list_T *l, char ***argv, int *argc); | 62 int build_argv_from_list(list_T *l, char ***argv, int *argc); |
63 int get_special_pty_type(void); | 63 int get_special_pty_type(void); |
64 int cmp_keyvalue_value(const void *a, const void *b); | |
65 int cmp_keyvalue_value_n(const void *a, const void *b); | |
66 int cmp_keyvalue_value_i(const void *a, const void *b); | |
67 int cmp_keyvalue_value_ni(const void *a, const void *b); | |
64 /* vim: set ft=c : */ | 68 /* vim: set ft=c : */ |