-
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
very slow for big project #68
Comments
are you using vim 7.4? as suggested replacing syntax match with syntax keyword solves the issue for me. |
@juliantaylor could you please submit a pull request so that I can test this on my side? |
I applied this patch which works for me, not it drops suffix, don't know what its used for: --- a/misc/easytags/highlight.py
+++ b/misc/easytags/highlight.py
@@ -51,5 +51,5 @@ def easytags_gensyncmd(tagsfiles, filetype, tagkinds, syntaxgroup, prefix, suffi
return ' | '.join(commands)
def _easytags_makecmd(syntaxgroup, prefix, suffix, patterns, ignoresyntax):
- template = r'syntax match %s /%s\%%(%s\)%s/ containedin=ALLBUT,%s'
- return template % (syntaxgroup, prefix, r'\|'.join(patterns), suffix, ignoresyntax)
+ template = r'syntax keyword %s %s containedin=ALLBUT,%s'
+ return template % (syntaxgroup, r' '.join(patterns), ignoresyntax) you can also switch back to the old regex engine with:
|
The patch seems to work nicely on vim 7.4, the speed was crippling before this but now it's fine. |
I have to add though: after adding the patch, nothing is highlighted anymore. So the patch has the effect of disabling the highlighter somehow. Yet it's better than not being able to move my cursor around... |
hm the highlighter is still working for me with the patch, what kind of files are you looking at? |
Just plain C files :) On Thu, Feb 27, 2014 at 6:30 PM, Julian Taylor notifications@github.comwrote:
|
@lookforit @juliantaylor my bad, it was a crazy |
Patch works perfectly with 7.4.135 thanks @juliantaylor |
Yes, @xolox perhaps you could merge this with a version check for 7.4? That would be awesome and I wouldn't have to manually patch half of my vim installations :) |
Was this patched into master? |
@mikedfunk it was not, unfortunately. @xolox could you merge this please? If not, what still needs to be done? |
Please try out version 3.6 (see b6f8757) and let me know how it works for you. By default it may still be slow, but take a look at the new g:easytags_syntax_keyword option. Note that 3.6 includes 3.5 which merged a huge feature branch, so here's hoping that works out well... Please note that right now this 'feature' is not integrated with the "accelerated Python syntax highlighting" feature, because I'm considering ripping that out and replacing it with a fast Vim script implementation (if I can build one :-). |
Ran into some minor issues with the new |
Proposed solution found here: xolox/vim-easytags#68
I'm running 3.9 (075ffe9) on Vim 7.4.473. @aktau commented on 28 Feb
@aktau commented on 28 Feb
I just manually patched this. It does successfully
@xolox commented on 9 Jul
|
@shtrom: Please change the setting in your vimrc, restart Vim and see if it helps at all then. If that does indeed help then maybe old highlighting patterns (which are cleared by vim-easytags, just for the record) somehow remain in memory, throwing Vim off? |
Having restored vim-easytags to 075ffe9, I first tried to set The problem seems to come from amdt/vim-niji, and is there even when easytags is disabled. I should have tried that earlier... Sorry for the noise. |
@shtrom: Thanks for the follow up, it's not always easy or obvious to find out what slows Vim down, I know all about this ;-). |
I just installed easytags, and I am experiencing massive delay. I applied the patch specified earlier in this post to my easytags, but there is no change. I am running vim 7.4. To verify that it is easy tags, here is the result from vim's profiling operation: list of all functions ran
The highlight function
|
Is this ticket still being worked on? I've been setting the regexpengine to 1 or 2 and can see a small difference (1 still being faster despite recent vim 7.4.2198). The real difference to make vim workable again other than emptying the .vimtags file is to manually switch to keyword matching as per the patch above. Shouldn't this be merged? The mentioned option g:easytags_syntax_keyword does not seem to do it (i.e. it is still slow after setting it to always). |
Hi
Be sorry to refer to this old topic again, but I can't find the answer in the posted issues.
When open a relative big(such as vim source code) project ,
easytags
makes cursor poor response,except I disable it manually.I noticed that the tag files of the project is about 3Mb, so I wonder how to open a much larger project(eg
Linux kernel
) witheasytags
enabled.Thanks.
The text was updated successfully, but these errors were encountered: