Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-69

[patch] avoid unnecessary map lookups

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.2
    • Affects Version/s: 1.1
    • Component/s: None
    • None

      Code loops over maps and fetches the value for each key in the map based on the keySet. This is unnecessary lookup, as you can just use the entrySet to get both key and value at the same time. Patch fixes this.

        1. avoid_map_lookups.diff
          3 kB
          Dave Brosius

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            mebigfatguy Dave Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: