Re:Slimmer and faster JavaScript strings in Firefox
by chadzawistowski on Tuesday July 22, 2014 @01:22PM
(#8070247)
Which encoding does Python use now?
Re:Slimmer and faster JavaScript strings in Firefox
by ceronman on Tuesday July 22, 2014 @04:28PM
(#8071393)
PEP 393 introduced flexible string representation which can use 1, 2 or 4 bytes depending on the type of the string: http://legacy.python.org/dev/peps/pep-0393/
One example of this is Python, which used UCS-2 until version 3.3. There was a compile time option to use UCS-4, but UCS-2 was enough for most cases because the BMP contains all the characters of all the languages currently in use.