Le jeudi 15 mars 2018 09:58:11 UTC+1, Christian Brabandt a écrit : > On Do, 15 Mär 2018, Ni Va wrote: > > > > > Hi, > > > > According to profile report log, this func take many time just when I open > > $MYVIMRC. > > > > > > FUNCTIONS SORTED ON TOTAL TIME > > count total (s) self (s) function > > 1 4.823772 0.000044 <SNR>3_StarSetf() > > 1 2.487757 0.268725 <SNR>17_SynSet() > > 1 2.209328 0.714291 <SNR>14_LoadFTPlugin() > > 8 1.986914 0.662675 <SNR>73_browse_check() > > 5 1.323730 0.000148 vimfiler#util#expand() > > 5 1.323540 0.000072 <SNR>112_get_prelude() > > 6 1.227060 0.000015 xpt#parser#Include() > > > > > > vim/vim80/filetype.vim|45| func! s:StarSetf(ft) > > That is definitely slow. I suppose the problematic line is the > `exe 'setf '. a:ft` line, since the self time is already pretty fast. > > However, you do not provide enough information. > > What kind of system is this? Please show more verbose output. How did > you reproduce this? Is your Vim installation perhaps on a network drive > that could make loading files actually slower? What Vim version is this? > > > Best, > Christian > -- > Es irrt der Mensch, so lang er strebt. > -- Johann Wolfgang von Goethe
Sorry Christian, the previous profiling file seems to not be good.
I have profiled again on Windows 10 gvim 8.0.1613 last released in 64bits.
FUNCTIONS SORTED ON TOTAL TIME
count total (s) self (s) function
1 0.122885 0.000096 <SNR>54_on_colorscheme_changed()
2 0.100779 0.007026 <SNR>54_init()
1 0.064258 0.008379 plug#end()
2 0.050345 0.000093 airline#load_theme()
1 0.044815 0.038567 airline#extensions#load()
1 0.036947 0.000265 airline#switch_theme()
3 0.032402 0.000218 airline#update_statusline()
This is part of $myvimrc in attached file.
Can I reduce airline on_colorscheme_changed and init()
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
_vimrc
Description: Binary data
