3 ms·
There was an experiment (see https://bug416411.bmoattachments.org/attachment.cgi?id=303074 https://bug416411.bmoattachments.org/attachment.cgi?id=30307... for t
by jcranmer 10y ago
There was an experiment (see https://bug416411.bmoattachments.org/attachment.cgi?id=303074 https://bug416411.bmoattachments.org/attachment.cgi?id=30307... for the results). that switched all the UTF-16 internal strings in Firefox to UTF-8. It found that UTF-8 lowered memory usage, even on text-heavy East Asian pages. Keep in mind that things like tag names or attribute names are all interned, so there's no space savings from, say, compressing <img src="">.