Uploaded image for project: 'HPPC'
  1. HPPC
  2. HPPC-166

More efficient map.putOrAdd and map.putIfAbsent

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.7.0, 0.7.1, 0.7.2
    • Fix Version/s: 0.7.3
    • Component/s: None
    • Labels:
      None

      Description

      HPPC 0.6.0 has very efficient implementation of map.putOrAdd method: it makes alone lookup. 

      But HPPC 0.7.2 version makes 2-3 lookups:
       - containsKey

      • get (optional)
      • put
         

        Attachments

          Activity

            People

            Assignee:
            dweiss Dawid Weiss
            Reporter:
            konst Konstantin Pavelko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: