jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1445) [PATCH] Use entrySet iterators to avoid map look ups in loops
Date Mon, 03 Mar 2008 06:02:50 GMT
[PATCH] Use entrySet iterators to avoid map look ups in loops
-------------------------------------------------------------

                 Key: JCR-1445
                 URL: https://issues.apache.org/jira/browse/JCR-1445
             Project: Jackrabbit
          Issue Type: Improvement
          Components: jackrabbit-core
    Affects Versions: core 1.4.1
            Reporter: Dave Brosius
             Fix For: core 1.4.2
         Attachments: use_entry_sets.patch

Code uses a keySet iterator in a loop, then does a map look up using the key retrieved from
the iterator. 

Might as well use an entrySet iterator to avoid n map lookups.

Patch does this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message