harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko" <alexey.a.petre...@gmail.com>
Subject Re: [jira] Created: (HARMONY-2737) [drlvm][classlib] Missing compressed strings support in java.lang.String.
Date Mon, 18 Dec 2006 10:44:20 GMT
2006/12/18, Tim Ellison <t.p.ellison@gmail.com>:
> 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.
Package private is also acceptable.

SY, Alexey

Mime
View raw message