-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrolling lag, relativenumber, cursorline and large tagfiles #88
Comments
Hi and thanks for the feedback. A couple of points:
Is your conclusion that the interaction between 1) Vim's syntax highlighting engine, 2) the match paren functionality, 3) the I must say I've noticed similar things; I never use relative line numbers but I sometimes enable All in all I'd desperately like to fix the performance issues with vim-easytags but currently I don't really see how, at least not the performance issues that occur once vim-easytags has defined its custom highlighting patterns and Vim goes all wonky :-( |
I see. I guess I wasn't paying too much attention to the discussion on the performance improvements. It doesn't seem to help or relate to the scrolling issue, then.
You're right, my first post on the issue is a bit of a mess because I'm not sure how it all relates.
I would need to test more and with other filetypes/languages, so I'll put down a preliminary "maybe".
I understand it's not very helpful since there's not much one can do with built-in features other than disable them. I suppose I was looking for insight on how tag highlighting interacts with the other options and whether any connection makes sense. |
This issue should probably be closed. The scrolling lag can't be avoided when the two options, It would seem that when |
After writing and loading a file I had really bad scroll lag as well and tried all the fixes above but in the end the lag was unbearable. Though I get no lag until I save and reload file. With a 3k tags file it was fine but at 30k the lag got pretty bad. In the end the fix for me was simply setting vim to use the old regex engine: 100% reproducible. If I set regexpengine=0 it lags again. This is on vim 7.4.560 on Archlinux |
@yantis You make my day. This really solve the problem. openSUSE 13.1 vim 7.4 with patches 1 - 52. |
I was having similar issues with lag, and changing regex engine really helped. Thanks @yantis ! |
Very likely related to #64 and very similar behaviour to LaTeX-Box-Team/LaTeX-Box#163
After turning on highlighting (which I usually keep off - turned it on recently because I noticed the discussion on improving performance), I noticed that scrolling (
hjkl
) was extremely slow when editing my~/.vimrc
file. The input latency becomes so large that holding one ofj
ork
for a couple of seconds and releasing keeps the cursor moving for a few seconds longer.Checking my tag files, the tags for vim were around 1M, which I know is a good way to cause issues with highlighting and easytags. However, before deleting, I did a bit of profiling and noticed that
56_Highlight_Matching_Pair()
was causing the scrolling issue, which is what reminded me of LaTeX-Box.So I tried toggling the same options I mention in the LaTeX-Box issue.
Disabling these three options while keeping highlighting on and having a big tags file makes the issue disappear completely. The cursor scrolls with a smoothness and responsiveness I only see when vim runs with no plugins or user options. A bit more testing revealed that
:NoMatchParen
is unnecessary and just dropping thecursorline
andrelativenumbers
is enough.I ended up deleting my vim tags file and keeping the options on and all is well. The reason I'm opening an issue is because I don't understand why a big tag file coupled with those options causes this much latency. More importantly, is there any other way around the issue? I have other tag files, for other languages, where I would want to be able to keep the tags and also keep the options on.
The text was updated successfully, but these errors were encountered: