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

ConcurrentHashMap smarter presizing for copy constructor and putAll

XMLWordPrintable

      ConcurrentHashMap::ConcurrentHashMap() -> putAll() -> tryPresize() -> transfer() does a lot of unnecessary work. There is nothing to transfer from the old table, since the table is just being initialized.

            jcao Joshua Cao
            jcao Joshua Cao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: