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

Slow startup time #4

Closed
itmecho opened this issue Feb 16, 2021 · 1 comment
Closed

Slow startup time #4

itmecho opened this issue Feb 16, 2021 · 1 comment

Comments

@itmecho
Copy link

itmecho commented Feb 16, 2021

Firstly, thanks for the fork!

I'm using this fork as part of the vim-polyglot plugin. I'm seeing really long startup times when opening fish files. Looking at the startuptime log, I can see that it's slow due to sourcing the fish syntax file. I've tried removing vim-polyglot and installing this fork directly and I still see the same issue.

Not sure if you have any ideas on how I could debug this further?

Neovim Version

NVIM v0.5.0-dev+1089-gdc3ca16a9
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

Startup time log

Strangely, it seems like it's sourcing the file 3 times during startup and it's taking roughly 1.5 seconds each time.
These logs are from installing the plugin directly instead of through vim-polyglot

1744.123  1634.145  1634.145: sourcing <removed>/.local/share/nvim/site/pack/packer/start/vim-fish/ftplugin/fish.vim
3288.826  1457.445  1457.445: sourcing <removed>/.local/share/nvim/site/pack/packer/start/vim-fish/ftplugin/fish.vim
4775.268  1478.543  1478.543: sourcing <removed>/.local/share/nvim/site/pack/packer/start/vim-fish/ftplugin/fish.vim
@itmecho
Copy link
Author

itmecho commented Feb 16, 2021

My bad, I've just seen #3 and investigated. Found the slow line in my config and removed it and now everything is fast again!

@itmecho itmecho closed this as completed Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant