Hirohito Higashi wrote:

> Hi Bram and Vim developers,
> 
> 2015/4/22(Wed) 2:08:56 UTC+9 Bram Moolenaar:
> > 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.
> 
> Sure, I update a patch.
> Please check this.

Thanks for the update!

-- 
Scientists decoded the first message from an alien civilization:
        SIMPLY SEND 6 TIMES 10 TO THE 50 ATOMS OF HYDROGEN TO THE STAR
SYSTEM AT THE TOP OF THE LIST, CROSS OFF THAT STAR SYSTEM, THEN PUT
YOUR STAR SYSTEM AT THE BOTTOM OF THE LIST AND SEND IT TO 100 OTHER
STAR SYSTEMS.  WITHIN ONE TENTH GALACTIC ROTATION YOU WILL RECEIVE
ENOUGH HYDROGREN TO POWER YOUR CIVILIZATION UNTIL ENTROPY REACHES ITS
MAXIMUM!  IT REALLY WORKS!

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