1989.vim icon indicating copy to clipboard operation
1989.vim copied to clipboard

Slow During Startup

Open BodneyC opened this issue 5 years ago • 0 comments

Hi,

I love the colorscheme but when I started using it I noticed a lag when opening vim (nvim in my case but it seems to do the same with both).

I assumed this was because the <SID>set_hi function was being called for every group despite repeated color definitions. I forked the repo and hi linked all the repeated groups which took 1989's startup time effect from ~22ms (my slowest plugin) to ~9ms.

I didn't want to make a PR because the resulting code is arguably less readable/maintainable and might not be what you want for the repo.

Just after your thoughts on performance here.

BodneyC avatar Jan 12 '20 10:01 BodneyC