[infinispan-dev] Early Access b93 is available for JDK 9 on java.net

Sanne Grinovero sanne at infinispan.org
Fri Nov 27 08:23:36 EST 2015


On 27 November 2015 at 13:19, Tristan Tarrant <ttarrant at redhat.com> 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


More information about the infinispan-dev mailing list