Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 26342 invoked from network); 25 Mar 2011 14:45:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2011 14:45:45 -0000 Received: (qmail 36960 invoked by uid 500); 25 Mar 2011 14:45:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 36938 invoked by uid 500); 25 Mar 2011 14:45:45 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 36930 invoked by uid 99); 25 Mar 2011 14:45:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 14:45:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 14:45:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AA3AB4D17C for ; Fri, 25 Mar 2011 14:45:05 +0000 (UTC) Date: Fri, 25 Mar 2011 14:45:05 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <381647570.11364.1301064305679.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1464914770.9935.1297409337558.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (DERBY-5021) [patch] avoid map look ups in a loop by using entrySet MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen resolved DERBY-5021. --------------------------------------- Resolution: Fixed Assignee: Dave Brosius Issue & fix info: (was: [Patch Available]) After DERBY-5143 we don't need the changes in EmbedConnection40 and NetConnection40 that reintroduced the compiler warnings. I removed the changes in those two files from the patch and committed revision 1085409. Thanks, Dave! > [patch] avoid map look ups in a loop by using entrySet > ------------------------------------------------------ > > Key: DERBY-5021 > URL: https://issues.apache.org/jira/browse/DERBY-5021 > Project: Derby > Issue Type: Improvement > Components: Network Server > Affects Versions: 10.7.1.1 > Reporter: Dave Brosius > Assignee: Dave Brosius > Priority: Trivial > Fix For: 10.8.0.0 > > Attachments: use_entryset_iterators.diff > > Original Estimate: 1h > Remaining Estimate: 1h > > 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. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira