JDK-4756453 : Optimize Character.java table initialization
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2002-10-02
  • Updated: 2002-10-25
  • Resolved: 2002-10-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 mantisFixed
Related Reports
Relates :  
Relates :  
Description
After the optimization opportunity detailed in 4747361 was uncovered,
###@###.### discovered that relatively simple transformations to
the static initializer of Character.java can decrease its running time
substantially. This work should be done for 1.4.2.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis FIXED IN: mantis INTEGRATED IN: mantis mantis-b05
14-06-2004

WORK AROUND
11-06-2004

SUGGESTED FIX
11-06-2004

PUBLIC COMMENTS
10-06-2004

EVALUATION Made the following changes in GenerateCharacter.java. - Use char[] instead of short[] for 16-bit integer values. This eliminate the initialization code for String to short[] conversion. - Added -usecharforbyte option. This enables use of char[] instead of byte[]. This also eliminate the String to byte[] conversion and masking with 0xFF. (note that an unsigned 8-bit value (0-255) is expected even it uses byte[].) - Optimized the char[] to int[] conversion. ###@###.### 2002-10-07
07-10-2002