C.UTF-8 review
Carlos O'Donell
carlos@redhat.com
Mon Jul 19 15:33:08 GMT 2021
On 7/15/21 4:56 AM, Florian Weimer wrote:
> * Paul Eggert:
>
>> Dumb question. Will C.UTF-8 have the same worst-case strcoll
>> performance that en_US.UTF-8 does? I'm asking because I wonder whether
>> we can recommend C.UTF-8 as a workaround for the strcoll performance
>> bug, in cases where plain C is not appropriate.
>>
>> https://sourceware.org/bugzilla/show_bug.cgi?id=18441
>>
>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49340
>
> I'm not sure if that advice is correct …
Could you expand on this a bit more please?
> With the new C.UTF-8 implementation, strcoll automatically switches to
> strcmp, so it will be as fast as it can be.
Agreed.
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list