You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Lars Francke (JIRA)" <ji...@apache.org> on 2015/09/30 14:11:04 UTC

[jira] [Created] (HBASE-14524) Short-circuit comparison of rows in CellComparator

Lars Francke created HBASE-14524:
------------------------------------

             Summary: 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


{{CellComparator#compareRows}} compares two rows. For Scans and Gets these objects can sometimes be exactly the same object.

I see this (without fully understanding all 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)