JDK-8189319 : Add a java.util.Properties constructor that takes an initial capacity
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-10-13
  • Updated: 2017-12-01
  • Resolved: 2017-10-30
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.
JDK 10
10 b30Fixed
Related Reports
CSR :  
Relates :  
Description
It would be useful to have a Properties constructor that took an argument to set the initial capacity.  Such a constructor is present on many of the other Map implementations in the JDK, including Hashtable, the superclass of Properties.

Comments
In particular, being able to specify the initial capacity of the Properties created to store the system properties could reduce startup time. The current initial capacity of 8 is insufficient, and we waste time at startup resizing to the needed size, when instead we should create a Properties with a sufficient initial capacity.
13-10-2017