antonj / Highlight-Indentation-for-Emacs

Minor modes to highlight indentation guides in emacs.
467 stars 56 forks source link

highlight-indentation-current-column-mode slows down Emacs in C mode #17

Closed ninja-coding closed 9 years ago

ninja-coding commented 10 years ago

Last week I noticed Emacs was very slow while scrolling (holding C-n or C-p) so I started disabling stuff in my .init.el and apparently the cause was highlight-indentation-current-column-mode, it only happened in C mode, I use it in Python mode too and it works perfectly, can anyone confirm this?

antonj commented 10 years ago

It uses regex to indents to highlight, it most definitely isn't optimal, I've seen it really slow on larger files, can't see why it would differ between different modes though

ninja-coding commented 10 years ago

The file wasn't very big (~200 lines), could it be that "highlight-indentation-current-column-mode" combined with another package being used only in c mode is causing this?

peterhoeg commented 10 years ago

I am seeing exactly the same thing but in coffee-mode. Other modes are fine, while a 150 lines .coffee file will make emacs lag for close to a second on key presses.

The problems occurs only with highlight-indentation-current-column-mode and not highlight-indentation-mode.

antonj commented 9 years ago

Is this still an issue with the latest version?

peterhoeg commented 9 years ago

@antonj - no, it's fine.

antonj commented 9 years ago

Nice

seagle0128 commented 7 years ago

It's very slow in big files. The issue still exists.