From bb4b4d79a8dd0eb60aa37f0b889558c4ae8e9317 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 18 Aug 2021 17:05:28 +0200 Subject: perf(highlight): use a hashtable for highlight group names syn_name2id and syn_check_group go brr. Note: this has impact mostly when using multiple filetypes, as the old syn_name2id was optimized to return latest added groups quickly (which will be the latest filetype) --- src/nvim/map.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/map.h') diff --git a/src/nvim/map.h b/src/nvim/map.h index 7bd3d31330..a35a2c1672 100644 --- a/src/nvim/map.h +++ b/src/nvim/map.h @@ -36,6 +36,7 @@ // MAP_DECLS(int, int) MAP_DECLS(cstr_t, ptr_t) +MAP_DECLS(cstr_t, int) MAP_DECLS(ptr_t, ptr_t) MAP_DECLS(uint64_t, ptr_t) MAP_DECLS(uint64_t, ssize_t) -- cgit