Axel Bender wrote:
> Sorry Bram, I wasn't aware of this ("... Note that you need to set
> 'regexpengine' before opening a file ...") - maybe this should go into
> the docs?
>
> Anyway, making the above mentioned setting in .vimrc brings back the
> 'good old times' ;-)
>
> Just for curiosity:
>
> 1) What ist NFA good for if it is so slow?
The NFA engine has some overhead, but it's more or less linear with the
size of the pattern and the text.
The old engine has lower overhead, but for some patterns it rises
exponentially. Especially when a pattern could match in many ways.
> 2) Will NFA replace (at some time in the future) the current engine?
No, they will need to co-exist. For simple patterns the old engine is
better, for complex patterns the new engine is better.
Problem is that some features, such as the look-behind matching, don't
fit with the NFA engine very well. I need to do a few inventions to
make this work better. I already made back-references work, something
that an NFA engine normally can't do.
--
hundred-and-one symptoms of being an internet addict:
62. If your doorbell rings, you think that new mail has arrived. And then
you're disappointed that it's only someone at the door.
/// 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.