oderwat / vscode-indent-rainbow

Extension which shows indentation with a faint rainbow colored background to make them more readable
MIT License
419 stars 58 forks source link

Extension causes high cpu load #33

Closed soewarsono closed 5 years ago

soewarsono commented 5 years ago

:warning: Make sure to attach this file from your home-directory: /home/soewarsono/oderwat.indent-rainbow-unresponsive.cpuprofile.txt :warning:

Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load

Box-Of-Hats commented 5 years ago

I'm having input latency issues when using indent-rainbow with a large (20k+ line) XML file. Performance in other files seems to be acceptable, however

oderwat commented 5 years ago

The only fix I may offer (when I got time to work in it) is that it disables itself when processing lasts longer than some time X. Working / testing for other (maybe impossible) optimisations is not on my agenda anytime soon.