[PATCH] speedup strcoll by using strdiff

Leonhard Holz leonhard.holz@web.de
Thu Mar 12 16:50:00 GMT 2015


Am 12.03.2015 um 14:13 schrieb Andreas Schwab:
> Leonhard Holz <leonhard.holz@web.de> writes:
>
>> Well, actually this is what I did to create it: Look into the charmap if it
>> defines characters above 0xff. But writing a parser would be some effort, so maybe
>> someone can hint me to an existing API?
>
> You won't need much of a parser, just look at the lines between CHARMAP
> and END CHARMAP.
>
> Andreas.
>

Hmm... actually there is a reader for charmap files (locale/programs/charmap.c).
Anyhow I think I found a smarter way to do this by adapting the MB_CUR_MAX macro.
v2 follows.



More information about the Libc-alpha mailing list