|
Quick Lists
|
|
Bug ID:
|
6792400
|
|
Votes
|
0
|
|
Synopsis
|
Avoid loading of Normalizer resources for simple uses
|
|
Category
|
java:classes_text
|
|
Reported Against
|
|
|
Release Fixed
|
6u14(b02)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6763369
|
|
Submit Date
|
11-JAN-2009
|
|
Description
|
Attempt to use Normalizer.normalize() on simple ASCII strings should not cause loading and parsing of unorm.icu. This file is over 100k and initialization is not cheap. It also requires opening and reading directory of resource.jar file.
In many situations Normalizer customer is used to "do it safe" while it has no impact on result of execution of the program. E.g. Normalizer is used get canonical names of certificates but many names are ASCII and do not need to be normalized!
Unfortunatelly, some of these "uses" of Normalizer happen on startup of application, e.g. in webstart code
performs verification of certificates and triggers full initialization of Normalizer.
Perhaps it can be possible to do simple check of whether request for normalization is trivial before performing full normalization for first time. See suggested fix for possible solution.
Posted Date : 2009-01-11 18:23:39.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
Changed NormalizerBase.java to handle ASCII-only text special no matter if the initialization is complete. Performance tests show it's now 20 times faster to process ASCII-only text while the overhead is negligible for non-ASCII text.
Posted Date : 2009-02-02 02:48:49.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |