Stefano Mazzocchi wrote: > Pavel Pervov (JIRA) wrote: >> [drlvm][classlib] Missing compressed strings support in java.lang.String. >> ------------------------------------------------------------------------- >> >> Key: HARMONY-2737 >> URL: http://issues.apache.org/jira/browse/HARMONY-2737 >> Project: Harmony >> Issue Type: Improvement >> Components: Classlib >> Reporter: Pavel Pervov >> >> >> Currently, DRLVM supports "compressed" strings (where character occupies 1 >> byte instead of 2). This improves performance on operations with pure ASCII >> strings (like ones present in XML processing). >> But this implementation depends on the presence of special field 'bvalue' of >> type 'byte[]' in java/lang/String and the support for operations on >> "compressed strings" in this class. It would be nice to have this support >> implemented in java.lang.String. It will work only with VMs supporting >> "compressed" one-byte strings. > > This is making harmony-specific extensions to the Java API which would > prevent us from passing the TCK and obtain certification. > > I like the idea, but the cost outweighs the benefits.
I assume that Pavel is suggesting a 'private byte[] bvalue' field. Regards, Tim
