Character decoding could be 3 times faster !
Alan.Bateman at Sun.COM
Mon May 19 11:16:49 UTC 2008
Ulf Zibis wrote:
> Hi folks,
> I would like to encourage, that some often used charset decoders,
> loaded by java.nio.charset.Charset, are worth to overview.
> See my results up to now: https://java-nio-charset-enhanced.dev.java.net/
> I would be glad, to read your comments here ...
> *** See also:
Your scripts are DOS batch files so I assume you are on Windows. As the
scripts don't specify the -client or -server option then I assume you
are testing only with the Client VM (is that right?). If you are only
testing with the Client VM then switching to the Server VM should make a
significant difference to this test. Another comment is that the input
file is only 190k so you'll probably need to decode it several thousand
times to get to a steady-state and get reasonable results.
One other thing - it looks like you are using the jdk6 sources with the
JRL license rather than OpenJDK sources. If you do improve the
performance of the decode loop for this class of decoder then it would
be best to post a patch against the OpenJDK sources.
More information about the core-libs-dev