Hi

The regexp .\{1,9000} is very slow with the new regexp engine
compared to the old engine. Compare the timing of those 2
commands where the only difference is set re=1 vs set re=2:

$ time vim -X -u NONE \
   -c 'set re=1' \
   -c 'call feedkeys("ihello\<esc>/.\\{1,9000}\<cr>:q!\<cr>")'

real    0m0.004s
user    0m0.000s
sys    0m0.004s


$ time vim -X -u NONE \
   -c 'set re=2' \
   -c 'call feedkeys("ihello\<esc>/.\\{1,9000}\<cr>:q!\<cr>")'

real    0m6.499s
user    0m6.432s
sys    0m0.020s

=> new regexp engine is 1624x times times slower here.

Is this a known limitation of the new NFA regexp engine?

Regards
Dominique

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