neoclide / coc-highlight

Document highlight and document colors LSP support for coc.nvim
226 stars 12 forks source link

Highlighting is slow #16

Closed braun-steven closed 2 years ago

braun-steven commented 5 years ago

The highlighting seems to be really slow. Even for small files, it takes between 0.5 and 1.0 seconds.

Any chance for improvements or are you just passing the buffer to the highlight server which is the bottleneck here?

chemzqm commented 5 years ago

Need sometime to start the server. Could slow on buffer create, try use minimal vimrc.

yangxuanx commented 5 years ago

我也是同样的问题,显示高亮很慢,node 12.10.0, neovim v0.4.2

francois-pasquier commented 4 years ago

Need sometime to start the server. Could slow on buffer create, try use minimal vimrc.

It's the same with a clean vimrc. The server takes way too much time to use this instead of something like ap/vim-css-color

Is there any improvement possible ?

newbeenew commented 4 years ago

slow after creation. profile.log image

chemzqm commented 4 years ago

slow after creation. profile.log image

It's not caused by coc.nvim

newbeenew commented 4 years ago

slow after creation. profile.log image

It's not caused by coc.nvim

sorry...

chemzqm commented 2 years ago

From 2.0.0 coc-highlight switched to worker threads and calculate color highlights for changed lines only.