fastpath for StringCoding.java

Ulf Zibis Ulf.Zibis at gmx.de
Fri Mar 20 20:55:01 UTC 2009


Am 20.03.2009 00:37, Xueming Shen schrieb:
> Webrev has been updated to address your coments. I'm building the 
> binaries and will run the benchmark again
> (up to 2048 this time) tonight.

As I see, you take a seed from Random to create the test patterns. This 
approach would be good for testing stability of the coders, but for 
benchmark it wouldn't take to account the differing probability 
distribution of the code points in the particular charsets.
For example see TIS-620. The code points from U+0e01 to U+0e5b would be 
probably more used than the latin chars and the unmappables.
I accommodate this by different coders. See:
https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-charset-enhanced/trunk/src/sun/nio/cs/

-Ulf





More information about the core-libs-dev mailing list