large Class.forName() patch

Artur Biesiadowski abies at
Mon Feb 7 01:56:26 PST 2000

Godmar Back wrote:

> Thinking about it, maybe it would even be worth thinking about
> not implementing Strings as char[] arrays internally, but as utf8strings.
> This would save space for all ASCII strings, it would allows to directly
> use a literal's utf8 representation.  Since strings are immutable, the
> internal char[] array is never directly exposed anyway.

It is done this way in gcj I think. But I do not suppose that it is a
good thing for java only implementation - main aim for Strings should be
efficiency. I think that String.charAt is method called often enough to
cause major performance drop in entire java app with such strings.


More information about the kaffe mailing list