cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-9706) Precompute ColumnIdentifier comparison
Date Thu, 02 Jul 2015 10:42:04 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-9706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611786#comment-14611786
] 

Sylvain Lebresne commented on CASSANDRA-9706:
---------------------------------------------

+1

> Precompute ColumnIdentifier comparison
> --------------------------------------
>
>                 Key: CASSANDRA-9706
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9706
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Benedict
>            Assignee: Benedict
>            Priority: Minor
>             Fix For: 3.0 beta 1
>
>
> Follow up to CASSANDRA-9701. I had hoped to precompute a total order on the ColumnIdentifier,
but decided this would be too risky, with the necessary periodic rebalancing. So instead,
I've hoisted the first 8 bytes of any name into a long which we can compare to short-circuit
all of the expensive work of ByteBufferUtil.compareUnsigned, making this another very trivial
patch (of debatable necessity to be distinct, but I've already snuck one extra change in to
the previous ticket).



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

Mime
View raw message