Hirohito Higashi wrote:

> Hi Bram and Vimmers,
> 
> I wrote a patch for built-in indentation improve speed.
> 
> Summary:
> cin_is_cpp_baseclass() search 'C++ baseclass' backward every time in for-loop 
> in misc1.c:7745~8710.
> When no C++ baseclass, look up each time the first line.
> This is not good.
>  
> I modified to cache the cin_is_cpp_baseclass()'s result.
> 
> 
> Time Measurement:
> $ vim -N -u NONE -c "set cino+=i2 cin" test.c
> :so disptime.vim
> 
> Base vim version: 7.4.707
> non-patched: 11.487525 sec
> patched:      0.225243 sec (Improve speed x50 !!!)
> 
> Please check and include this.
 
Thanks, a very nice improvement.

Instead of using a new structure lfpos_T, I would prefer to use the
existing lpos_T and a separate "found" flag.


-- 
BEDEVERE:        And what do you burn, apart from witches?
FOURTH VILLAGER: ... Wood?
BEDEVERE:        So why do witches burn?
SECOND VILLAGER: (pianissimo) ... Because they're made of wood...?
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

Raspunde prin e-mail lui