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

java.util.Hashtable iteration is slow if the hashtable is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.3.0
    • core-libs
    • None

      The current implementation of java.util.Hashtable iteration is slow if the hash
      table is empty, since the default size of hashtable is 101, and the iteration
      linearly goes through all the 101 buckets. Although hash table is not designed
      for iterating, this is a problem for applications like javac, which creates a
      lot of empty hashtables and iterates through them.

            bgomessunw Benedict Gomes (Inactive)
            zlisunw Zhenghua Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: