You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksey Yeschenko (JIRA)" <ji...@apache.org> on 2014/03/27 17:15:16 UTC

[jira] [Created] (CASSANDRA-6941) Optimized CF.hasColumns() implementation

Aleksey Yeschenko created CASSANDRA-6941:
--------------------------------------------

             Summary: Optimized CF.hasColumns() implementation
                 Key: CASSANDRA-6941
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6941
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Benedict
            Assignee: Aleksey Yeschenko
            Priority: Minor
             Fix For: 2.1 beta3


Half the time we call ColumnFamily#getColumnCount() we do it to compare the result to 0. For both AtomicBTreeColumns and ArrayBackedSortedColumns we can implement optimized hasColumns() method, that would avoid some overhead for the former and pre-sorting for the latter.



--
This message was sent by Atlassian JIRA
(v6.2#6252)