Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Very poor performance when neotags is enabled and the tags file is large #18

Closed
haasn opened this issue Nov 15, 2017 · 2 comments
Closed

Comments

@haasn
Copy link
Contributor

haasn commented Nov 15, 2017

I have a project with a large tags file (wc -l tags -> 8949), and enabling neotags absolutely cripples vim's performance. Even simple tasks such as j/k are slow, and saving (:w) takes a good 5-10 seconds. This makes editing any file almost impossible.

Also, even with a smaller tags file (e.g. just 1-2k tags), it's still noticeably choppier when scrolling around or saving files.

Is there a way to speed up neotags? Other highlighting plugins (e.g. TagHighlight) do not have this issue.

@c0r73x
Copy link
Owner

c0r73x commented Nov 15, 2017

One way is to disable some of the kind groups, when using a lot of them it can get really slow.

But I've also noticed that it can get slow in some projects for odd reasons. There might be a better way to do the highlighting, The way I do it now is similar to easytags because thats the plugin I used before I wrote this, I will check how TagHighlight does it.

@c0r73x
Copy link
Owner

c0r73x commented Nov 15, 2017

I've made some changes that should speed things up a bit. Please try the latest commit.

@c0r73x c0r73x closed this as completed Apr 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants