On 3/26/26 07:37, Pádraig Brady wrote:

If I remove these lines from lib/mcel.h
and also have the above configure var set
I get faster cut -c:

-#ifdef __GLIBC__
-# undef mbrtoc32
-#endif

Let's remove those lines from lib/mcel.h if that helps performance in the common GNU case. I put them in only because they helped performance on GNU/Linux back in the day, but evidently that has changed.


We do replace mbrtowc() on glibc always currently,
but wc was changed to using mbrtoc32() in coreutils v9.4-37-g14d35d5ba
which thus took the slower path since then I think.

I'm a little lost here. Why do we always replace mbrtowc on glibc? And why is mbrtoc32 not also replaced on glibc?


Reply via email to