]> git.eshelyaron.com Git - emacs.git/commit
Add tiny optimization for string-search
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 26 Sep 2020 22:35:11 +0000 (00:35 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 26 Sep 2020 22:35:11 +0000 (00:35 +0200)
commit104688feb45dde126199ce277edc27c85e1b0faf
treeb22ecc0a0c21ad3faaa9930c0e7e6bfdc2b60cad
parentbaf331e40c08155082e255372d7cc3c9d63aa3c8
Add tiny optimization for string-search

* src/fns.c (Fstring_search): Add tiny optimization for needles
that are longer than the haystack (bug#43598).
src/fns.c
test/lisp/subr-tests.el