We have found worse performance of isSupported with "JISAutoDetect".
REPRODUCE :
1) Compile the attached test program
2) Launch "java isSupportedTest1"
We can see the result of execution(elapse) time as follows.
case5:24626
case6:24545
This is done in 1.4.2_05.
CONFIGURATION :
OS : Windows XP (SP, Japanese)
JRE : 1.4.2_05
Mem: 384 [MB]
MPU : Pentium IV 1.4[GHz]
==========================================================================
REPRODUCE :
1) Compile the attached test program
2) Launch "java isSupportedTest1"
We can see the result of execution(elapse) time as follows.
case5:24626
case6:24545
This is done in 1.4.2_05.
CONFIGURATION :
OS : Windows XP (SP, Japanese)
JRE : 1.4.2_05
Mem: 384 [MB]
MPU : Pentium IV 1.4[GHz]
==========================================================================
- relates to
-
JDK-6348343 REGRESSION: ClassCastException in JISAutoDetect.java on 1.4.2_10
- Resolved
-
JDK-5002890 (cs) Charset.isSupported is slow when invoked for different charsets
- Resolved
-
JDK-4831163 Need NIO implementation for JISAutoDetect autodetecting charset
- Resolved