emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making `replace-match' more efficient


From: Lars Ingebrigtsen
Subject: Re: Making `replace-match' more efficient
Date: Thu, 07 Oct 2021 20:56:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> +      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.

It was just an exploratory patch.  I confirmed that this branch was
taken in my tests.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]