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:

  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

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