aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-08-18 17:05:28 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2021-08-19 15:08:50 +0200
commitbb4b4d79a8dd0eb60aa37f0b889558c4ae8e9317 (patch)
tree61037f1d6121dac2ed3ab0f073c476941e53a2c7 /src/nvim/main.c
parentfca52f5f32844d8820e6a1ef2678bc79c5e6d8d8 (diff)
downloadrneovim-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/main.c')
-rw-r--r--src/nvim/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 2cdf01b146..136608afdf 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -166,6 +166,7 @@ void early_init(mparm_T *paramp)
init_path(argv0 ? argv0 : "nvim");
init_normal_cmds(); // Init the table of Normal mode commands.
highlight_init();
+ syntax_init();
#ifdef WIN32
OSVERSIONINFO ovi;