This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Optimize locale-archive for speed (take 2)
Thanks! I put your changes in, and then cleaned them up as I'd mentioned:
The smallest categories are lumped together until the lump would exceed
two pages. With the current locales, this always does just what yours
did: everything but LC_CTYPE and LC_COLLATE. The order winds up different
because I just do them in category order, omitting the small ones and
emitting the block in LC_ALL's slot in that ordering. So LC_CTYPE and
LC_COLLATE wind up first, followed by the small-category block.
This should continue to dtrt if some new large category comes along.
Thanks,
Roland