Pregunta:
Estoy usando la distribución https://github.com/carlhuda/janus vim y claramente no estoy satisfecho con el tiempo de carga.
¿Cuál sería la mejor manera de perfilar y acelerar el tiempo de carga de vim? También sería interesante comparar el tiempo de carga con http://vim.spf13.com/
Respuesta:
Si solo desea ver lo que consume tiempo de inicio, puede usar la opción --startuptime
.
vim --startuptime timing.out
El archivo se verá así:
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
000.000 000.000: locale set
000.000 000.000: GUI prepared
000.000 000.000: clipboard setup
000.000 000.000: window checked
000.000 000.000: inits 1
000.000 000.000: parsing arguments
000.000 000.000: expanding arguments
000.000 000.000: shell init
000.000 000.000: Termcap init
000.000 000.000: inits 2
000.000 000.000: init highlight
000.000 000.000 000.000: sourcing /usr/share/vim/vim74/debian.vim
000.000 000.000 000.000: sourcing $VIM/vimrc
000.000 000.000 000.000: sourcing /home/mccoyj1/.vim/autoload/pathogen.vim
008.004 004.002 004.002: sourcing /home/mccoyj1/.vim/bundle/janah/colors/janah.vim
040.022 032.018 032.018: sourcing /usr/share/vim/vim74/filetype.vim
...