4 ms·
And there is a good chance it will change again to have compact String in OpenJDK 9, see http://openjdk.java.net/jeps/254 http://openjdk.java.net/jeps/254
by jeb_douche 11y ago
And there is a good chance it will change again to have compact String in OpenJDK 9, see http://openjdk.java.net/jeps/254 http://openjdk.java.net/jeps/254
- stevoski 11y agoI'm dubious as to whether this change will occur. It's been tried before, and given up due to complexity. I think it is an excellent idea, but in practice too awkward to implement seamlessly.
- ptx 11y agoPython 3.3 did it: https://www.python.org/dev/peps/pep-0393/ https://www.python.org/dev/peps/pep-0393/
- aembleton 11y agoThis looks like a good idea. Most Strings could be encoded with one byte per char.