diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2021-08-18 17:05:28 +0200 |
|---|---|---|
| committer | Björn Linse <bjorn.linse@gmail.com> | 2021-08-19 15:08:50 +0200 |
| commit | bb4b4d79a8dd0eb60aa37f0b889558c4ae8e9317 (patch) | |
| tree | 61037f1d6121dac2ed3ab0f073c476941e53a2c7 /src/nvim/map.h | |
| parent | fca52f5f32844d8820e6a1ef2678bc79c5e6d8d8 (diff) | |
| download | rneovim-bb4b4d79a8dd0eb60aa37f0b889558c4ae8e9317.tar.gz rneovim-bb4b4d79a8dd0eb60aa37f0b889558c4ae8e9317.tar.bz2 rneovim-bb4b4d79a8dd0eb60aa37f0b889558c4ae8e9317.zip | |
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)
Diffstat (limited to 'src/nvim/map.h')
| -rw-r--r-- | src/nvim/map.h | 1 |
1 files changed, 1 insertions, 0 deletions
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) |