Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5021

[patch] avoid map look ups in a loop by using entrySet

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 10.7.1.1
    • 10.8.1.2
    • Network Server
    • None
    • Low

    Description

      various places code walks a keyset iterator in a loop and each time thru the loop does a map lookup for the value based on the current key. Avoid the map look ups by just iterating with an entry set iterator.

      Attachments

        1. use_entryset_iterators.diff
          4 kB
          Dave Brosius

        Activity

          People

            dbrosius@apache.org Dave Brosius
            dbrosius@apache.org Dave Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified