Another 646 patch and performance comparison with TOWER
Tom Tromey
tromey@redhat.com
Tue Apr 2 13:25:00 GMT 2002
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> Why doesn't the `646' get turned into `ASCII' in getDecoder?
I tried the appended test.
With this I don't see any attempts to load a converter library.
So I think the 646 is being converted to `ASCII' internally.
I'm using my caching patch plus the small change ("return" -> "result =")
that you recommended.
Tom
public class t
{
public static void main (String[] args) throws java.io.UnsupportedEncodingException
{
for (int i = 0; i < 50; ++i)
{
byte[] r = new byte[5];
r[0] = (byte) 'a';
r[1] = (byte) 'b';
r[2] = (byte) 'c';
r[3] = (byte) 'd';
r[4] = (byte) 'e';
String s = new String (r, "646");
System.out.println (s);
}
}
}
More information about the Java-patches
mailing list