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
--
--
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.