You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2013/05/06 21:46:16 UTC

[jira] [Comment Edited] (CASSANDRA-5541) Reduce Empty Map allocations in RowMutation (modifications)

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

Jonathan Ellis edited comment on CASSANDRA-5541 at 5/6/13 7:44 PM:
-------------------------------------------------------------------

This one is not intuitive to me, what code is creating empty RowMutations?  If we can just not do that, or maybe create a re-usable emptyRowMutation object, that might be preferable.
                
      was (Author: jbellis):
    This one is not intuitive to me, what code is creating empty RowMutations?
                  
> Reduce Empty Map allocations in RowMutation (modifications)
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-5541
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5541
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.0
>            Reporter: Dave Brosius
>            Assignee: Dave Brosius
>            Priority: Trivial
>             Fix For: 2.0
>
>         Attachments: 5541.txt
>
>
> The constructor 
> public RowMutation(String table, ByteBuffer key)
> was generation tons of empty HashMaps that were unused, on the order of 160,000 of them in about a minute.
> delay creating the map until you need it.

--
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