Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA1809CE2 for ; Tue, 14 Feb 2012 00:55:24 +0000 (UTC) Received: (qmail 39466 invoked by uid 500); 14 Feb 2012 00:55:23 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 39419 invoked by uid 500); 14 Feb 2012 00:55:22 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 39407 invoked by uid 99); 14 Feb 2012 00:55:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 00:55:22 +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; Tue, 14 Feb 2012 00:55:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8D5D61B5EF7 for ; Tue, 14 Feb 2012 00:54:59 +0000 (UTC) Date: Tue, 14 Feb 2012 00:54:59 +0000 (UTC) From: "Zhihong Yu (Updated) (JIRA)" To: issues@hbase.apache.org Message-ID: <1206119802.34632.1329180899580.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <578467854.29508.1329054539469.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-5388) Tuning HConnectionManager#getCachedLocation method 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/HBASE-5388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhihong Yu updated HBASE-5388: ------------------------------ Comment: was deleted (was: -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12514303/SoftValueSortedMap.java against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/945//console This message is automatically generated.) > Tuning HConnectionManager#getCachedLocation method > -------------------------------------------------- > > Key: HBASE-5388 > URL: https://issues.apache.org/jira/browse/HBASE-5388 > Project: HBase > Issue Type: Improvement > Affects Versions: 0.90.5 > Reporter: ronghai.ma > Assignee: ronghai.ma > Labels: patch > Fix For: 0.94.0 > > Attachments: 5388-v2.txt, 5388-v3.txt, 5388-v4.txt, 5388-v5.txt, 5388-v6.txt, HConnectionManager.java, SoftValueSortedMap.java, SoftValueSortedMap.java > > > About 75% improvement in execution time. > 1. Add the following method in SoftValueSortedMap: > {code} > public synchronized Entry lowerEntry(K key) { > return ((TreeMap) this.internalMap).lowerEntry(key); > } > {code} > 2. Modify getCachedLocation: > {code} > Map.Entry tEntry = tableLocations.lowerEntry(row); > if (tEntry != null) { > HRegionLocation possibleRegion = tEntry.getValue(); > //other code > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira