[Fwd: Re: hg: jdk7/tl/jdk: 6642323: Speeding up Single Byte Decoders; ...]
Ulf Zibis
Ulf.Zibis at gmx.de
Sat Jan 17 11:23:51 PST 2009
Hi Christian,
In JDK 6 it's in sun.nio.cs.SingleByteDecoder, method decode().
In JDK 7 it's also in sun.nio.cs.SingleByte$Decoder, method decode().
Here you can see, how I've played around with different byte loading
techniques:
https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-charset-enhanced/branches/array_io_string/src/sun/nio/cs/SingleByteFastDecoder.java?rev=&view=markup
Most up-to-date are:
https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-charset-enhanced/trunk/src/sun/nio/cs/SingleByteMapDecoder.java?rev=&view=markup
https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-charset-enhanced/trunc/src/sun/nio/cs/SingleByteDirtyMapDecoder.java?rev=&view=markup
To run my project's classes after checkout, you first have to run once
make\src\build\tools\charsetmapping\GenerateMappingData by using
configuration "GenerateMappingData" in NetBeans IDE.
Good luck,
-Ulf
Am 17.01.2009 19:51, Christian Thalinger schrieb:
>
> Thanks for the benchmark, but it seems it does not use any unsigned byte
> loads. Can you point me to a place in the JDK where this +128 trick is
> used?
>
> -- Christian
>
>
>
More information about the hotspot-dev
mailing list