C.UTF-8 review
Florian Weimer
fweimer@redhat.com
Thu Jul 15 08:56:15 GMT 2021
* 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 …
With the new C.UTF-8 implementation, strcoll automatically switches to
strcmp, so it will be as fast as it can be.
Thanks,
Florian
More information about the Libc-alpha
mailing list