Re:Validating UTF-8 strings using as little as 0.7 cycles pe...
by greglindahl on Wednesday May 16, 2018 @06:41PM
(#17087045)
Sounds like your library is the poster-child for:
> it blows up memory usage for ASCII and BMP (4 bytes per codepoint versus 1~3)
I have written my own unicode library, normalizing strings as UTF-32 is MUCH MUCH MUCH easier than trying to do the same in UTF-8 or UTF-16.
not to mention casefolding, and it also allows you to design better interfaces, so that the actual algorithm only needs to be implemented once.