zbirenbaum / neodim

Neovim plugin for dimming the highlights of unused functions, variables, parameters, and more
315 stars 10 forks source link

Performance issue when moving cursor #41

Open ten3roberts opened 11 months ago

ten3roberts commented 11 months ago

I have experienced noticeable lag when moving my cursor with j/k, or when scrolling <C-d>.

This seems to be caused by the ts_override function, which takes 50% of all execution time. Removing neodim solves the performance issue.

Flamegraph:

profile

The issue occurs in rust and lua whenever there appears to be some warnings about unused variables.