From dev-return-17349-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Mon Mar 03 06:03:59 2008 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 98444 invoked from network); 3 Mar 2008 06:03:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2008 06:03:59 -0000 Received: (qmail 6315 invoked by uid 500); 3 Mar 2008 06:03:54 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 6283 invoked by uid 500); 3 Mar 2008 06:03:54 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 6267 invoked by uid 99); 3 Mar 2008 06:03:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2008 22:03:53 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 06:03:15 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 75457234C088 for ; Sun, 2 Mar 2008 22:02:50 -0800 (PST) Message-ID: <1988302154.1204524170479.JavaMail.jira@brutus> Date: Sun, 2 Mar 2008 22:02:50 -0800 (PST) From: "Dave Brosius (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1445) [PATCH] Use entrySet iterators to avoid map look ups in loops In-Reply-To: <89908797.1204524170443.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dave Brosius updated JCR-1445: ------------------------------ Priority: Trivial (was: Major) > [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 > Priority: Trivial > 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.