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

Branimir Lambov updated CASSANDRA-8230:
---------------------------------------
    Attachment: 8230-2.1.patch

I went a little further with this, also changing some other features of the 
token code that did not make much sense. The attached patch applies after 8171, 
comparison is viewable 
[here|https://github.com/blambov/cassandra/compare/blambov:8171-2.1-generics...8230-2.1-token-impr].

{panel}
Small reorganization and simplification of the Token hierarchy:
* LongToken inherits directly from Token and gets a primitive long token
field, improving efficiency.
* BytesToken no longer inherits from AbstractToken as it was not making
use of any of its functionality.
* AbstractToken becomes applicable to Comparable tokens only, allowing
more shared functionality to be moved there.
* AbstractByteOrderedPartitioner is simplified as it is only used with
byte[] tokens.
{panel}

> LongToken no longer needs to use a boxed Long
> ---------------------------------------------
>
>                 Key: CASSANDRA-8230
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8230
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Branimir Lambov
>            Assignee: Branimir Lambov
>            Priority: Minor
>             Fix For: 2.1.2
>
>         Attachments: 8230-2.1.patch
>
>
> After CASSANDRA-8171 a token reference field is no longer a requirement for 
> tokens. This permits LongTokens to include a primitive long field, which 
> should noticeably improve the space and time efficiency of the 
> Murmur3Partitioner tokens.



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

Reply via email to