Optimize loading time by reusing hi definitions with hi link#95
Optimize loading time by reusing hi definitions with hi link#95laggardkernel wants to merge 2 commits intorakr:masterfrom
Conversation
`hi link` reduces loading time from 33.6 ms to 18.3 ms. Force link `hi! link` is needed to override default settings, otherwise warning messages will be popped up during theme loading.
|
Thanks for this PR, although I'd like to open a discussion on this one. Even though |
|
Before you mentioned the side effect, I am not aware of it. In fact, I always use the But, you're right. Saving 15ms is not a big thing, at least in case there's an SSD on your machine. Using the |
hi linkreduces loading time from33.6ms to18.3ms. This idea is borrowed from vim theme gruvbox.Force link
hi! linkis needed to override default settings,otherwise warning messages will be popped up during theme loading.