Wednesday, May 24, 2017

Re: Vim startup profiling

Le mardi 23 mai 2017 21:46:01 UTC+2, Ni Va a écrit :
> Le mardi 23 mai 2017 18:14:24 UTC+2, MarcWeber a écrit :
> > > Thank you
> > Sped up by using a plugin manager supporting lazy loading or as needed
> > (vim-addon-manager/Neobundle maybe more).
> >
> > Typically sourcing twice is not a problem, often guard [1] like guard
> > has been setup which is a quick workraound which immediately saves most
> > time.
> >
> > Marc Weber
> >
> > [1]
> >
> > if exists("loaded_<name>")
> > finish
> > endif
> > let loaded_<name> = 1
> >
> > ....
>
> Ok this one seems better than vundle and save me 100ms at startup but I dig.
> https://github.com/junegunn/vim-plug
>
> Thank you Marc !

Ok I save 100ms using the plugin manager vim-plug but not enough for me.
Is anyone can advise me or explain to me why some files are loaded twice and take twice or more times N msec:
- vim80/menu.vim
- vim80\filetype.vim


Thank you
_____________________________

times in msec
clock self+sourced self: sourced script
clock elapsed: other lines

000.000 000.000: --- VIM STARTING ---
000.000 000.000: Allocated generic buffers
002.000 002.000: locale set
004.000 002.000: GUI prepared
004.000 000.000: clipboard setup
004.000 000.000: window checked
004.000 000.000: inits 1
006.000 002.000: parsing arguments
006.000 000.000: expanding arguments
007.000 001.000: shell init
007.000 000.000: inits 2
008.000 001.000: init highlight
018.000 003.000 003.000: sourcing D:\Logiciels\Vim/awesomeplugins/vim/vim-plug-master/plug.vim
043.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\awl\ftdetect\awl.vim
044.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\sonictemplate-vim\ftdetect\stpl.vim
045.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-ps1\ftdetect\ps1.vim
046.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-ps1\ftdetect\ps1xml.vim
047.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-ps1\ftdetect\xml.vim
052.000 001.000 001.000: sourcing D:\Logiciels\Vim\vim80\lang/menu_fr_fr.latin1.vim
052.000 002.000 001.000: sourcing D:\Logiciels\Vim\vim80\lang\menu_fr.latin1.vim
054.000 001.000 001.000: sourcing D:\Logiciels\Vim\vim80\autoload\paste.vim
096.000 047.000 044.000: sourcing D:\Logiciels\Vim\vim80/menu.vim
096.000 072.000 025.000: sourcing D:\Logiciels\Vim\vim80\filetype.vim
097.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\ftplugin.vim
099.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\indent.vim
104.000 002.000 002.000: sourcing D:\Logiciels\Vim\vim80\syntax\syncolor.vim
104.000 003.000 001.000: sourcing D:\Logiciels\Vim\vim80\syntax\synload.vim
104.000 004.000 001.000: sourcing D:\Logiciels\Vim\vim80\syntax\syntax.vim
119.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\syntax/nosyntax.vim
122.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\syntax\syncolor.vim
122.000 001.000 001.000: sourcing D:\Logiciels\Vim\vim80\syntax\synload.vim
122.000 004.000 003.000: sourcing D:\Logiciels\Vim\vim80\syntax\syntax.vim
124.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\syntax/nosyntax.vim
127.000 001.000 001.000: sourcing D:\Logiciels\Vim\vim80\syntax\syncolor.vim
127.000 002.000 001.000: sourcing D:\Logiciels\Vim\vim80\syntax\synload.vim
127.000 004.000 002.000: sourcing D:\Logiciels\Vim\vim80\syntax\syntax.vim
128.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\filetype.vim
129.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\ftplugin.vim
130.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\indent.vim
132.000 001.000 001.000: sourcing D:\Logiciels\Vim\vim80\syntax/nosyntax.vim
134.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\syntax\syncolor.vim
135.000 002.000 002.000: sourcing D:\Logiciels\Vim\vim80\syntax\synload.vim
135.000 004.000 001.000: sourcing D:\Logiciels\Vim\vim80\syntax\syntax.vim
138.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\syntax\syncolor.vim
140.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\syntax\syncolor.vim
142.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\syntax\syncolor.vim
142.000 005.000 005.000: sourcing D:\Logiciels\Vim\vimfiles\colors\nivacolors.vim
143.000 134.000 038.000: sourcing $VIM\_vimrc
143.000 001.000: sourcing vimrc file(s)
144.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\awl\plugin\awl.vim
145.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\backup\plugin\backup.vim
146.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\codi.vim-master\plugin\codi.vim
147.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\comfortable-motion.vim\plugin\comfortable_motion.vim
150.000 001.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\ctrlp.vim-master\autoload\ctrlp\mrufiles.vim
150.000 002.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\ctrlp.vim-master\plugin\ctrlp.vim
152.000 001.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\DirDiff.vim\plugin\dirdiff.vim
154.000 001.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\Execute-selection-in-Python-and-append-master\plugin\pythonExecuteAppendOrReplace.vim
156.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\L9-master\autoload\l9.vim
156.000 001.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\L9-master\plugin\l9.vim
158.000 001.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\limelight.vim\plugin\limelight.vim
159.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\matchit.zip-master\plugin\matchit.vim
163.000 003.000 003.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\mru.vim-master\plugin\mru.vim
165.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\sonictemplate-vim\plugin\sonictemplate.vim
166.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\tabular-master\plugin\Tabular.vim
170.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\unite.vim\autoload\unite\custom.vim
170.000 002.000 002.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\unite.vim\plugin\unite\bookmark.vim
171.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\unite.vim\plugin\unite\buffer.vim
172.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\unite.vim\plugin\unite\window.vim
173.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\unite.vim\plugin\unite.vim
176.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline.vim
178.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\init.vim
180.000 001.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\parts.vim
180.000 006.000 005.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\plugin\airline.vim
181.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-themes\plugin\airline-themes.vim
183.000 001.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-easy-align\plugin\easy_align.vim
189.000 005.000 005.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-fugitive\plugin\fugitive.vim
190.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-interestingwords-master\plugin\interestingwords.vim
191.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vimfiler.vim-master\plugin\vimfiler.vim
193.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vimproc\plugin\vimproc.vim
195.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\plugin\getscriptPlugin.vim
196.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\plugin\gzip.vim
198.000 001.000 001.000: sourcing D:\Logiciels\Vim\vim80\plugin\logiPat.vim
198.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\plugin\manpager.vim
199.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\plugin\matchparen.vim
200.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\plugin\netrwPlugin.vim
201.000 001.000 001.000: sourcing D:\Logiciels\Vim\vim80\plugin\rrhelper.vim
201.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\plugin\spellfile.vim
202.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\plugin\tarPlugin.vim
203.000 000.000 000.000: sourcing D:\Logiciels\Vim\vim80\plugin\tohtml.vim
204.000 001.000 001.000: sourcing D:\Logiciels\Vim\vim80\plugin\vimballPlugin.vim
205.000 001.000 001.000: sourcing D:\Logiciels\Vim\vim80\plugin\zipPlugin.vim
205.000 035.000: loading plugins
205.000 000.000: loading packages
208.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\tabular-master\autoload\tabular.vim
210.000 004.000 004.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\tabular-master\after\plugin\TabularMaps.vim
210.000 001.000: loading after plugins
210.000 000.000: inits 3
211.000 001.000 001.000: sourcing $VIMRUNTIME\menu.vim
247.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\extensions.vim
250.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\extensions\quickfix.vim
252.000 001.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\extensions\unite.vim
253.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\extensions\ctrlp.vim
255.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\extensions\branch.vim
257.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\extensions\whitespace.vim
261.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\extensions\wordcount.vim
268.000 001.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\section.vim
269.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\highlighter.vim
274.000 001.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\themes.vim
274.000 002.000 001.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-themes\autoload\airline\themes\cool.vim
284.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\util.vim
287.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\builder.vim
289.000 000.000 000.000: sourcing D:\Logiciels\Vim\awesomeplugins\vim\vim-airline-master\autoload\airline\extensions\default.vim
323.000 108.000: starting GUI
324.000 001.000: reading viminfo
325.000 001.000: GUI delay
325.000 000.000: setting raw mode
325.000 000.000: start termcap
325.000 000.000: clearing screen
332.000 007.000: opening buffers
332.000 000.000: BufEnter autocommands
332.000 000.000: editing files in windows
334.000 002.000: VimEnter autocommands
334.000 000.000: before starting main loop
335.000 001.000: first screen update
335.000 000.000: --- VIM STARTED ---

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: