]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.0951: trying every character position for a match is inefficient v9.0.0951
authorBram Moolenaar <Bram@vim.org>
Sat, 26 Nov 2022 11:47:10 +0000 (11:47 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 26 Nov 2022 11:47:10 +0000 (11:47 +0000)
commit01105b37a108022515d364201767f7f111ec4222
tree352f98cdf0ccf56a8854b00df62a00573edb9780
parentc96311b5be307f5a1d1b20a0ec930d63964e7335
patch 9.0.0951: trying every character position for a match is inefficient

Problem:    Trying every character position for a match is inefficient.
Solution:   Use the start position of the match ignoring "\zs".
src/regexp.c
src/regexp.h
src/regexp_bt.c
src/regexp_nfa.c
src/version.c