Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

vim-go function/struct highlighting is slow #35

Closed
krishicks opened this issue Aug 18, 2015 · 1 comment
Closed

vim-go function/struct highlighting is slow #35

krishicks opened this issue Aug 18, 2015 · 1 comment

Comments

@krishicks
Copy link
Contributor

I had to disable it: https://github.com/krishicks/vimfiles/commit/e348bd7cfd2635f3a6937a8eba6972a36e5ad76e

This was problematic on test files particularly because they can grow to be quite large. My 2015 MacBook struggled to move the pointer around on larger files. Disabling both of these functions fixed the performance problem.

These flags are used here: https://github.com/fatih/vim-go/blob/3df3cbf2e7ab9d76fd67f9f4077060b4450ba90c/syntax/go.vim#L268

Maybe the regex could be optimized for performance.

For now, I don't care so much about the function and struct highlighting, so disabling works for me.

@luan
Copy link
Owner

luan commented Sep 3, 2015

I did the same + methods: 44e5faf

@luan luan closed this as completed Sep 3, 2015
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