Re:UCS vs. UTF-8 as Internal String Encoding
by geocar on Thursday May 28, 2015 @12:01PM
(#9619034)
If we're iterating characters, we might as well use zlib-compressed 21-bit unicode characters. They save even more room than UTF8, and it's difficult to pretend that characters can be accessed by index.
[ Parent
| on HN ]
Re:UCS vs. UTF-8 as Internal String Encoding
by barrkel on Thursday May 28, 2015 @12:33PM
(#9619280)
There's an order of magnitude difference (at least) between accessing memory vs unzipping. The constant space overhead isn't great either for small strings.
For big strings like web pages, we already do use zlib (via gzip).