News for hackers. Stuff that matters.
Re:The sad history of Unicode printf-style format specifiers... by Const-me on Thursday December 01, 2022 @06:33AM (#33814977)
UTF-16 is cheaper to decode. All CPUs have branch predictors, 99.99% of all UTF-16 strings don't contain any surrogate pairs.

For East Asian languages UTF-16 uses 50% less memory, these characters take 3 bytes in UTF-8, but only 2 bytes in UTF-16.

Re:The sad history of Unicode printf-style format specifiers... by barrkel on Thursday December 01, 2022 @09:27AM (#33816623)
That's 33% less memory, or conversely, UTF-8 uses 50% more memory.