Alexei Alexandrov wrote:
> Bram Moolenaar wrote:
> >
> > Patch 7.1.235
> > Problem: Pattern matching is slow when using a lot of simple patterns.
> > Solution: Avoid allocating memory by not freeing it when it's not so much.
> > (Alexei Alexandrov)
> > Files: src/regexp.c
>
> Thanks a lot!
> You had to rework it somewhat as I can see, right?
The only essential thing I added was freeing "reg_tofree" when it's
long.
> I'm also curious what happens with the DFA regexp engine rework?
It's still being worked on. It's probably not going to help for simple
patterns, might even make it slower. But it will help a lot for
patterns with things like ".*".
--
(letter from Mark to Mike, about the film's probable certificate)
For an 'A' we would have to: Lose as many shits as possible; Take Jesus
Christ out, if possible; Loose "I fart in your general direction"; Lose
"the oral sex"; Lose "oh, fuck off"; Lose "We make castanets out of your
testicles"
"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/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---