On 15/07/10 07:44, Dominique Pellé wrote:
Tony Mechelynck wrote:

OTOH, I believe that CSApprox does the job well, with no appreciable delay,
and I don't feel the necessity of patching the C code.

Hi Tony

I also use CSApprox which I find very nice.  I measured how long it
takes for vim to start with&  without CSApprox on my machine (without
using the snapshotted scheme feature of CSApprox):

When using CSApprox.vim:

   $ time vim -c q
   real 0m0.496s
   user 0m0.468s
   sys  0m0.020s


When not using CSApprox.vim:

   $ time vim -c q
   real 0m0.221s
   user 0m0.196s
   sys  0m0.012s

So on my machine, using CSApprox.vim adds ~ 275 ms which is acceptable
but noticeable (it more than doubles startup time).  I'm using Vim-7.3a
huge with this colorscheme:

You're a fast-reacting guy. Changing from a quarter of a second to half a second is not something I notice. Especially now that I use a hand-coded session file whose last line is "sleep 3 | intro" :-)


   http://www.vim.org/scripts/script.php?script_id=2198

This is the timing using --startuptime (measuring several times)
which shows that sourcing CSApprox.vim takes ~ 270 ms (second column):

   $ vim --startuptime with-csaaprox.txt -c q

   $ grep CSApprox with-csaaprox.txt
   401.332  272.682  262.586: sourcing /home/pel/.vim/plugin/CSApprox.vim
   398.207  269.501  259.428: sourcing /home/pel/.vim/plugin/CSApprox.vim
   392.784  262.959  253.058: sourcing /home/pel/.vim/plugin/CSApprox.vim
   389.716  262.984  253.074: sourcing /home/pel/.vim/plugin/CSApprox.vim
   400.432  267.164  257.251: sourcing /home/pel/.vim/plugin/CSApprox.vim

Regards
-- Dominique


Best regards,
Tony.
--
By trying, we can easily learn to endure adversity -- another man's, I
mean.
                -- Mark Twain

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

Raspunde prin e-mail lui