Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8189319

Add a java.util.Properties constructor that takes an initial capacity

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b30

      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.

        Issue Links

          Activity

          Hide
          bchristi Brent Christian added a comment -
          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.
          Show
          bchristi Brent Christian added a comment - 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.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk10/master/rev/1851856462b0
          User: bchristi
          Date: 2017-10-30 23:57:53 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk10/master/rev/1851856462b0 User: bchristi Date: 2017-10-30 23:57:53 +0000

            People

            • Assignee:
              bchristi Brent Christian
              Reporter:
              bchristi Brent Christian
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: