On 27 November 2015 at 13:19, Tristan Tarrant <[email protected]> wrote: > > > On 27/11/2015 13:36, Rory O'Donnell wrote: > >> JEP 254: Compact Strings (http://openjdk.java.net/jeps/254) >> >> This JEP adopts a more space-efficient internal representation for strings. >> >> We propose to change the internal representation of the String class >> from a UTF-16 char array to a byte array plus an encoding-flag field. >> The new String class will store characters encoded either as >> ISO-8859-1/Latin-1 (one byte per character), or as UTF-16 (two bytes per >> character), based upon the contents of the string. The encoding flag >> will indicate which encoding is used. > > > This one sounds very promising, in the context of our last talks.
Yes, but we also need a way to Marshall these efficiently. I haven't looked yet, but I'd assume we'd need to be able to read that internal flag somehow, to adjust wire encoding strategies. Hopefully David will get interested? Sanne _______________________________________________ infinispan-dev mailing list [email protected] https://lists.jboss.org/mailman/listinfo/infinispan-dev
