You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benedict (JIRA)" <ji...@apache.org> on 2015/09/15 18:55:45 UTC

[jira] [Updated] (CASSANDRA-10316) Improve ColumnDefinition comparison performance

     [ https://issues.apache.org/jira/browse/CASSANDRA-10316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benedict updated CASSANDRA-10316:
---------------------------------
         Reviewer: 601126228506
    Fix Version/s:     (was: 3.0.x)
                   3.0.0 rc1

> Improve ColumnDefinition comparison performance
> -----------------------------------------------
>
>                 Key: CASSANDRA-10316
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10316
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Benedict
>            Assignee: Benedict
>             Fix For: 3.0.0 rc1
>
>
> We have already improved the performance here for the basic comparison, however since these happen exceedingly frequently we may as well go a little (easy step) further. This is a really tiny patch, and we should aim to include before GA, but not RC.
> Right now we use all of an int for the metadata presorting, but in fact we only need 2-3 bytes for this. We can upcast the int to a long, and use the remaining bits to store the prefix of the _name_. This way, a majority of comparisons become a single long comparison. Which will be considerably cheaper.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)