harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [jira] Created: (HARMONY-2737) [drlvm][classlib] Missing compressed strings support in java.lang.String.
Date Fri, 15 Dec 2006 16:35:00 GMT
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.

-- 
Stefano.


Mime
View raw message