3 ms·
> The Latin1 optimization looks interesting. CPython did something similar (though more expansive, it switches between 4 different internal encodings depending
by masklinn 12y ago
> The Latin1 optimization looks interesting.
CPython did something similar (though more expansive, it switches between 4 different internal encodings depending on string content: ASCII, latin1, UCS2 and UCS4) in 3.3 with the PEP 393 "Flexible String Representation". I wonder if this Moz change was independently reinvented or inspired by the FSR.