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 6D6879F3F for ; Sun, 12 Feb 2012 14:13:23 +0000 (UTC) Received: (qmail 15419 invoked by uid 500); 12 Feb 2012 14:13:23 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 15243 invoked by uid 500); 12 Feb 2012 14:13: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 15235 invoked by uid 99); 12 Feb 2012 14:13:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Feb 2012 14:13: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; Sun, 12 Feb 2012 14:13: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 506BF1B24DF for ; Sun, 12 Feb 2012 14:12:59 +0000 (UTC) Date: Sun, 12 Feb 2012 14:12:59 +0000 (UTC) From: "ronghai.ma (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1045562928.29530.1329055979330.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <578467854.29508.1329054539469.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5388) tunning getCachedLocation method MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5388?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1320= 6422#comment-13206422 ]=20 ronghai.ma commented on HBASE-5388: ----------------------------------- My pleasure, and two questions: 1. the svn location 2. my account Yes, measeured in excution time. =20 > tunning getCachedLocation method > -------------------------------- > > Key: HBASE-5388 > URL: https://issues.apache.org/jira/browse/HBASE-5388 > Project: HBase > Issue Type: Improvement > Reporter: ronghai.ma > > About 75% improvement=E3=80=82 > 1. Add a method in SoftValueSortedMap > public synchronized Entry lowerEntry(K key) { > return ((TreeMap) this.internalMap).lowerEntry(key); > } > 2. Modify getCachedLocation=20 > Map.Entry tEntry =3D tableLocations.lowerEntry(r= ow); > if (tEntry !=3D null) { > HRegionLocation possibleRegion =3D tEntry.getValue(); > //other code > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira