emacs-devel
[Top][All Lists]
Advanced

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

Re: master def6fa4246 2/2: Speed up string-lessp for multibyte strings


From: Mattias Engdegård
Subject: Re: master def6fa4246 2/2: Speed up string-lessp for multibyte strings
Date: Sat, 8 Oct 2022 21:01:18 +0200

8 okt. 2022 kl. 20.25 skrev Eli Zaretskii <eliz@gnu.org>:

> As long as memcmp reports equality, we don't care, and once it reports
> inequality, you can examine the first unequal bytes "by hand".  Right?

Unfortunately memcmp doesn't tell us the location of the inequality.

> I also asked about memmem -- did you consider using that?

No, it wouldn't help in any way.

> AUTO_STRING can also generate stack-allocated multibyte strings.

Maybe, but it doesn't look like it. Not that it matters much now.
(No fan of AUTO_STRING myself although I understand why it's used now and then.)

>> `string-lessp` has much better test coverage than what is typical for Emacs 
>> primitives
> 
> For non-ASCII strings?

Yes.




reply via email to

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