JDK-4493546 : Loading Properties files significantly slower than in 1.3.1
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2001-08-17
  • Updated: 2013-11-01
  • Resolved: 2001-10-03
Related Reports
Duplicate :  
Relates :  
Description
Creating and loading a Properties file is significantly slower on 1.4 (beta_refresh build 76) than 1.3.1.

My machine:
SunOS zoz 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-60

I've attached a test case, pass in an arg gives the number of times to load the properties file. I've also attached the properties file I used, which is one of the property files swing loads.
Running it with an arg of 1 on 1.3.1 results in a time of 7, and 1.4 a time of 110. Part of this discrepency is likely because of the additional classes in 1.4. Running it with an arg of 100 on 1.3.1 results in a best time of 205, vs 450 on 1.4.

Note: This may in fact be a bug in io/nio but is manifesting itself in loading of properties files.

Comments
EVALUATION Fixed by the Charset API redesign (4503732). -- ###@###.### 2001/10/3
10-09-0169