Open linusboyle opened 6 years ago
Here is my profiling:
...
129.668 087.747 087.354: sourcing /Users/me/.vim/plugged/vim-one/colors/one.vim
...
592.448 002.263 002.073: sourcing /Users/me/.vim/plugged/vim-one/autoload/airline/themes/one.vim
Not sure if I know how to read this properly, but vim-one
seems to take 87ms to load(?), and the airlines theme 2ms(?).
Most of my plugins takes 0.xxx
ms(?) to load, except tpope's sensible and unimpaired. Is this something that can be worked and improved?
Agreed. No idea why this is but vim-one is taking forever to load. These are my top 3 load times:
vim-one: (70.13ms) nerdtree: (9.492ms) vim-polyglot: (2.41 ms)
It's just ridiculous. I use a couple dozen plugins and not one of them comes close.
Same for me
=====================================
Top 10 plugins slowing nvim's startup
=====================================
1 158.536 vim-one
2 5.463 nerdtree
3 3.014 vim-airline
4 2.015 delimitMate
...
Think I've got a fix. Will push a PR later.
Also see #74
Made a fork to improve the startup time.
# the original one
❯ vim-profiler.py -r 10 nvim
=====================================
Top 10 plugins slowing nvim's startup
=====================================
1 170.621 vim-one
2 6.274 vim-airline
3 4.038 vim-polyglot
4 3.496 coc.nvim
5 2.645 colorizer
6 2.413 vim-textobj-xmlattr
7 2.313 vim-textobj-comment
8 1.795 vim-sensible
9 1.664 vim-textobj-line
10 1.341 ctrlp.vim
=====================================
# the hard-coded
❯ vim-profiler.py -r 10 nvim
=====================================
Top 10 plugins slowing nvim's startup
=====================================
1 11.172 vim-one
2 6.650 vim-airline
3 3.960 vim-polyglot
4 3.579 coc.nvim
5 2.830 colorizer
6 2.405 vim-textobj-comment
7 2.372 vim-textobj-xmlattr
8 1.732 vim-sensible
9 1.724 vim-textobj-line
10 1.430 ctrlp.vim
=====================================
Hello there,I really like this colorscheme,but it's too slow to startup with this plugin enabled,even if not set to one-dark colorscheme
a startuptime log shows how greatly it affects this:
I disabled the plugin and start again,this time only 300ms used. It seems not only colorscheme itself but the airline-plugin also takes too much time to load.
and here is my vim version: