Re:The UTF-8-Everywhere Manifesto
by ybungalobill on Wednesday May 09, 2012 @11:46AM
(#3949084)
I believe the authors wrote it clear enough that they don't rule out UTF-16 completely:
> We believe that all other encodings of Unicode (or text, in general) belong to rare edge-cases of optimization and should be avoided by mainstream users.
So if you're writing a browser that must use UTF-16 in its Javascript engine due to dumb standards... it is a reasonable performance optimizations to use UTF-16 for your strings. But how many people write Javascript engines?
https://bugzilla.mozilla.org/show_bug.cgi?id=506431
Since then we've done things such as fast-path ASCII -> UTF-16 conversion with SSE2 instructions. Converting a few dozen bytes is unlikely to make a significant difference, but often one needs to deal with more than a few dozen bytes.