Doug Kearns wrote:

> On 12 June 2013 15:13, Ben Fritz <[email protected]> wrote:
> > On Monday, June 10, 2013 8:47:35 PM UTC-5, Hiroshi Shirosaki wrote:
> >>
> >> rubyPredefinedConstant pattern looks much slower with this file.
> >>
> >> syntime result:
> >>
> >> :set re=0
> >>
> >>   TOTAL      COUNT  MATCH   SLOWEST     AVERAGE   NAME               
> >> PATTERN
> >>   0.073358   187    0       0.001526    0.000392  rubyPredefinedConstant 
> >> \%(\%(\.\@<!\.\)\@<!\|::\)\_s*\zs\%(RUBY_\%(VERSION\|RELEASE_DATE\|PLATFORM\|PATCHLEVEL\|REVISION\|DESCRIPTION\|COPYRIGHT\|ENGINE\
> >
> > Isn't that first bit much too complicated?
> 
> That does look suspiciously like cultivated nonsense.  I'll take a look.

Also, merging the four similar patterns into one would save a lot of
time, without having to solve the pattern puzzle.

Note that \@<= now estimates the size of what comes before it and
doesn't try lots of different locations.  Unfortunately you can only see
if this works by enabling "DEBUG" and digging through huge log files.
Obviously it doesn't work for ".*".

-- 
You're as much use as a condom machine at the Vatican.
                  -- Rimmer to Holly in Red Dwarf 'Queeg'

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


Raspunde prin e-mail lui