Skip to content
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

super slow with a lot of comments #33

Open
ocehugo opened this issue Sep 25, 2017 · 6 comments
Open

super slow with a lot of comments #33

ocehugo opened this issue Sep 25, 2017 · 6 comments

Comments

@ocehugo
Copy link

ocehugo commented Sep 25, 2017

Hi,

thanks for the updated syntax.

I found some problems while using the standard vim syntax and this one. I had some very dense comment blocks in some files, and vim never worked quick in them.

I tracked down and syntax highlighting was to blame. However, I'm so used to it that i cannot code without it.

So I try to trackdown the HiLink command that was slowing everything and I found that changing the comment to underlined achieve a much faster navigation:

HiLink pythonComment Underlined

ps: using neovim

@jwkvam
Copy link

jwkvam commented Oct 26, 2017

I've also noticed that using this plugin causes noticeable lag. I'm also using neovim (with alacritty terminal). Your suggestion didn't work for me though. I haven't tried debugging further, but plan to.

@ocehugo
Copy link
Author

ocehugo commented Oct 26, 2017

Hi @jwkvam ,
not using this anymore, found several problems with the syntax (missing colors in some structures) and some regex calls.

I end up using my own syntax file...not fancy or complex --- just some overwrited calls to hilink commands of comments and removing some complex regexs that I don't care about.

good luck

@nfnty
Copy link
Member

nfnty commented Jan 9, 2019

Would be great if you could upload some test files, so that I can reproduce this issue, thanks.

@jwkvam
Copy link

jwkvam commented Jan 11, 2019

Sorry about that, I wish I included some :(
I also switched. I'm using https://github.com/numirias/semshi now

@mbyio
Copy link

mbyio commented Nov 23, 2019

I had the same problem and had to stop using the plugin because of it. For some files it was taking up to a minute just for syntax highlighting. I've seen this in some other syntax plugins too (like Go's).

I think neovim has a bug that makes certain syntax highlighting really slow, because I only seem to have problems in really big files. Neovim has a few open issues related to this, but I don't think anybody has pinned down the problem yet.

I definitely do not have time, but if someone compares the builtin Python syntax file to what this one is doing, they can probably use that to figure out where the bug is in neovim.

@paniash
Copy link

paniash commented Nov 30, 2020

@ocehugo Hi! Mind sharing your syntax file? I'm find this plugin quite laggy (especially noticeable when pressing 'o' to go into insert mode on a newline). Is this a plugin issue or am I the only one that feels it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants