]> git.eshelyaron.com Git - emacs.git/commit
Minor string-search optimisations (bug#43598)
authorMattias Engdegård <mattiase@acm.org>
Sun, 27 Sep 2020 12:28:07 +0000 (14:28 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 27 Sep 2020 12:28:07 +0000 (14:28 +0200)
commit8bd233a7eb6bc4709d0adf0577d30aaf167e75bf
tree4b5ba2e1390afd42c033b977a110a28a4ff5df1a
parent583cb264ad386a3767a05233f0e50b788bcf31ac
Minor string-search optimisations (bug#43598)

* src/fns.c (Fstring_search): Perform cheap all-ASCII checks before more
expensive ones.  Use a faster loop when searching for non-ASCII
non-raw bytes.
* test/src/fns-tests.el (string-search): Add more test cases.
src/fns.c
test/src/fns-tests.el