[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making `replace-match' more efficient
From: |
Eli Zaretskii |
Subject: |
Re: Making `replace-match' more efficient |
Date: |
Thu, 07 Oct 2021 21:54:56 +0300 |
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 07 Oct 2021 20:33:00 +0200
>
> + if (SBYTES (string) == SCHARS (string)
> + && SBYTES (newtext) == SCHARS (newtext)
This is not enough to detect pure-ASCII strings, because such strings
are many times unibyte. Perhaps this is one reason why you didn't see
any significant performance gains.