diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-09-22 07:22:17 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-09-22 07:22:22 +0200 |
commit | f2bd2386a79fed311361fd9ca809ab1b2a0362a6 (patch) | |
tree | c8c9d87316ac2fdb863763d03ef696ad814c40e5 /src/unexec.h | |
parent | 7ce721bdacd65d47031060ee8e81d6117e94cc75 (diff) | |
download | emacs-f2bd2386a79fed311361fd9ca809ab1b2a0362a6.tar.gz emacs-f2bd2386a79fed311361fd9ca809ab1b2a0362a6.tar.bz2 emacs-f2bd2386a79fed311361fd9ca809ab1b2a0362a6.zip |
Speed up `replace-match' slightly
* src/search.c (Freplace_match): Speed up non-literal (but
actually literal) common case.
This makes
(benchmark-run 1000000
(replace-regexp-in-string
"a+" "foo"
"ogihdipofdhookfdohkfdpokhpokhfdpokfdhpokfdhkdfkhgoadfphokfkhpofdkhkdpokf"))
about 10% faster.
Diffstat (limited to 'src/unexec.h')
0 files changed, 0 insertions, 0 deletions