Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0
-
Fix Version/s: 1.1
-
Component/s: Build/distribution
-
Labels:None
-
Application server:WebSphere
Description
Every time a table is generated, the property files are accessed. In TableProperties.java getLocaleResolverInstance(), some code is executed without useing the result. By moving a if-clause to the top of the method, the code won't be executed, and we will get a performance gain. I have implemented the change in my locale version, at it works fine. I have also attached the new version of TableProperties.java (see line 409).
Following change has been done:
class: TableProperties.java
method: getLocaleResolverInstance()
Moved if(localeResolver == null){ from line 433 to line 409.
The localeResolver is null only first time a table is generated, the rest of the tables will use the localeResolver found first time.