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 E61F418578 for ; Fri, 19 Jun 2015 15:55:00 +0000 (UTC) Received: (qmail 62623 invoked by uid 500); 19 Jun 2015 15:55:00 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 62568 invoked by uid 500); 19 Jun 2015 15:55:00 -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 62557 invoked by uid 99); 19 Jun 2015 15:55:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2015 15:55:00 +0000 Date: Fri, 19 Jun 2015 15:55:00 +0000 (UTC) From: "Anoop Sam John (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13614) Avoid temp KeyOnlyKeyValue temp objects creations in read hot path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14593554#comment-14593554 ] Anoop Sam John commented on HBASE-13614: ---------------------------------------- Patch lgtm. minor comments public void setKey(byte[] key) Is this needed? setKey(byte[], int, int) is enough right? {code} // TODO BufferedEncodedSeeker, instance will be used by single thread alone. So we can // have one KeyValue.KeyOnlyKeyValue instance as instance variable and reuse here and in // seekToKeyInBlock keyOnlyKV.setKey(current.keyBuffer, 0, current.keyLength); {code} Now it is done. Can remove the TODO > Avoid temp KeyOnlyKeyValue temp objects creations in read hot path > ------------------------------------------------------------------ > > Key: HBASE-13614 > URL: https://issues.apache.org/jira/browse/HBASE-13614 > Project: HBase > Issue Type: Sub-task > Reporter: Anoop Sam John > Assignee: ramkrishna.s.vasudevan > Priority: Critical > Fix For: 2.0.0 > > Attachments: HBASE-13614.patch, HBASE-13614_1.patch > > > As part of HBASE-10800, move to new CellComparator, we are temp creating a Cell out of byte[]s so that the Comparator can compare. In read hot path, we can try minimize the object creations. The parent Jira added some such cases, which we can solve. This Jira will solve all such cases. -- This message was sent by Atlassian JIRA (v6.3.4#6332)