sometimes vim takes a lot of time to load a file, and the more file i load, the 
more time it takes (i'm talking about even 20 seconds or more).

i've been able to reproduce the problem by just loading 10 identical files one 
after the other. it seems a problem with my configuration, as using "vim -u 
NONE -U NONE" doesn't show any significant slow down, so i recompiled vim with 
the huge feature set and i tried some profiling.
I'm new to this vim functionality, but if i didn't make any mistake here's what 
i discovered so far:

FUNCTIONS SORTED ON TOTAL TIME
count  total (s)   self (s)  function
 1031  33.785843   2.328670  <SNR>15_SynSet()
 1031   1.240259   1.058717  <SNR>11_LoadFTPlugin()
[etc]

FUNCTIONS SORTED ON SELF TIME
count  total (s)   self (s)  function
 1031  33.785843   2.328670  <SNR>15_SynSet()
 1031   1.240259   1.058717  <SNR>11_LoadFTPlugin()
[etc]

the function is this one:

FUNCTION  <SNR>15_SynSet()
Called 1031 times
Total time:  33.785843
 Self time:   2.328670

count  total (s)   self (s)
[...]
2062              0.020603     for name in split(s, '\.')
1031  31.834159   0.376986       exe "runtime! syntax/" . name . ".vim syntax/" 
. name . "/*.vim"
1031              0.001621     endfor
[etc]

so i suppose the culprit is this line of code, which load the syntax plugins 
for the file i just loaded. i have no idea why it takes more and more time each 
time i load a new file, but the problem is: i have no idea what to do now :(

any suggestions? thanks in advance

-- 
-- 
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/groups/opt_out.


Raspunde prin e-mail lui