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 B29311875C for ; Mon, 5 Oct 2015 17:54:27 +0000 (UTC) Received: (qmail 35675 invoked by uid 500); 5 Oct 2015 17:54:27 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 35632 invoked by uid 500); 5 Oct 2015 17:54:27 -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 35605 invoked by uid 99); 5 Oct 2015 17:54:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Oct 2015 17:54:27 +0000 Date: Mon, 5 Oct 2015 17:54:27 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-14524) Short-circuit comparison of rows in CellComparator 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-14524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-14524: -------------------------- Attachment: HBASE-14524.patch > Short-circuit comparison of rows in CellComparator > -------------------------------------------------- > > Key: HBASE-14524 > URL: https://issues.apache.org/jira/browse/HBASE-14524 > Project: HBase > Issue Type: Improvement > Reporter: Lars Francke > Assignee: Lars Francke > Priority: Minor > Attachments: HBASE-14524.patch, HBASE-14524.patch > > > {{CellComparator#compareRows}} compares two rows. For Scans and Gets these objects can sometimes be exactly the same object. > I see this (without fully understanding everything that's going on) for the first cell in each row. > In these circumstances I think it makes sense to short-circuit the comparison (not do a byte comparison and class cast checks) and bail out early if the objects are identical. -- This message was sent by Atlassian JIRA (v6.3.4#6332)