From 78d742ab8845578f78039ddd71a6444c6929257c Mon Sep 17 00:00:00 2001 From: John Marriott Date: Tue, 2 Apr 2024 20:26:01 +0200 Subject: 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 Signed-off-by: Christian Brabandt --- src/proto/misc2.pro | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/proto/misc2.pro') diff --git a/src/proto/misc2.pro b/src/proto/misc2.pro index f596ffafaf..7a5b36736d 100644 --- a/src/proto/misc2.pro +++ b/src/proto/misc2.pro @@ -61,4 +61,8 @@ int mch_parse_cmd(char_u *cmd, int use_shcf, char ***argv, int *argc); int build_argv_from_string(char_u *cmd, char ***argv, int *argc); int build_argv_from_list(list_T *l, char ***argv, int *argc); int get_special_pty_type(void); +int cmp_keyvalue_value(const void *a, const void *b); +int cmp_keyvalue_value_n(const void *a, const void *b); +int cmp_keyvalue_value_i(const void *a, const void *b); +int cmp_keyvalue_value_ni(const void *a, const void *b); /* vim: set ft=c : */ -- cgit v1.2.3