[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Performance of `re-search-backward' vs `re-search-forward'
From: |
Stefan Monnier |
Subject: |
Re: Performance of `re-search-backward' vs `re-search-forward' |
Date: |
Mon, 12 Apr 2021 11:13:34 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> I seem to (very vaguely) remember reading that `re-search-backward' is
> significantly slower than `re-search-forward'. However, I can't find
> anything about it in the docstring (nor in the Elisp reference) now. Am
> I even correct?
I haven't looked at the code recently so my memory might be off, but
I can't think of any reason why it should be noticeably slower, no.
Maybe you're confusing it with `looking-back` which is much slower than
`looking-at`?
Stefan