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/03/03 15:49:04 UTC

[jira] [Commented] (CASSANDRA-8793) Avoid memory allocation when searching index summary

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

Benedict commented on CASSANDRA-8793:
-------------------------------------

Updated repo with those changes. As to other callers, getKeySamples() is the only example I can see, and it is called rarely. It would require some (slight) ugliness inducing refactor which is probably not worth the low yield IMO.

> Avoid memory allocation when searching index summary
> ----------------------------------------------------
>
>                 Key: CASSANDRA-8793
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8793
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Benedict
>            Assignee: Benedict
>            Priority: Minor
>             Fix For: 3.0
>
>
> Currently we build a byte[] for each comparison, when we could just fill the details into a DirectByteBuffer



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