jackrabbit-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/JCR-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting updated JCR-1445:
-------------------------------

    Affects Version/s:     (was: core 1.4.1)
        Fix Version/s:     (was: core 1.4.2)
                       1.5

> [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
>            Reporter: Dave Brosius
>            Priority: Trivial
>             Fix For: 1.5
>
>         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