[
https://issues.apache.org/jira/browse/CASSANDRA-3966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246428#comment-13246428
]
Jonathan Ellis commented on CASSANDRA-3966:
-------------------------------------------
can we also change serializeForStorage signature to {{int
write(DataOutputStream out)}} to avoid unnecessary conversions back to
ByteBuffer?
> KeyCacheKey and RowCacheKey to use raw byte[]
> ---------------------------------------------
>
> Key: CASSANDRA-3966
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3966
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Affects Versions: 1.0.0
> Reporter: Vijay
> Assignee: Vijay
> Priority: Minor
> Fix For: 1.1.1
>
> Attachments: 0001-CASSANDRA-3966.patch
>
>
> We can just store the raw byte[] instead of byteBuffer,
> After reading the mail
> http://www.mail-archive.com/[email protected]/msg03725.html
> Each ByteBuffer takes 48 bytes => for house keeping can be removed by just
> implementing hashcode and equals in the KeyCacheKey and RowCacheKey
> http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/nio/ByteBuffer.java#ByteBuffer.hashCode%28%29
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira