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] [Updated] (CASSANDRA-5664) Improve serialization in the native protocol
Date Fri, 19 Jul 2013 15:28:50 GMT

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

Sylvain Lebresne updated CASSANDRA-5664:
----------------------------------------

    Attachment: 0002-Avoid-copy-when-compressing-native-protocol-frames.txt
                0001-Rewrite-encoding-methods.txt

Attaching patch for this. This does clean up serialization a bit, will probably be a bit faster
and allocate less objects. Last but not least, this make it easy to not do another copy when
we compress the frames, which is what the 2nd patch does.
                
> Improve serialization in the native protocol
> --------------------------------------------
>
>                 Key: CASSANDRA-5664
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5664
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Sylvain Lebresne
>            Priority: Minor
>         Attachments: 0001-Rewrite-encoding-methods.txt, 0002-Avoid-copy-when-compressing-native-protocol-frames.txt
>
>
> Message serialization in the native protocol currently make a Netty's ChannelBuffers.wrappedBuffer().
The rational was to avoid copying of the values bytes when such value are biggish. This has
a cost however, especially with lots of small values, and as suggested in CASSANDRA-5422,
this might well be a more common scenario for Cassandra, so let's consider directly serializing
in a newly allocated buffer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message