You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "sankalp kohli (JIRA)" <ji...@apache.org> on 2015/06/17 20:59:00 UTC

[jira] [Commented] (CASSANDRA-9496) ArrivalWindow should use primitives

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

sankalp kohli commented on CASSANDRA-9496:
------------------------------------------

The patch is against 2.0 but I think it should work for later branches. 

> ArrivalWindow should use primitives 
> ------------------------------------
>
>                 Key: CASSANDRA-9496
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9496
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: sankalp kohli
>            Assignee: sankalp kohli
>            Priority: Minor
>         Attachments: 9496.txt
>
>
> While doing a heap analysis of a large cluster(1000+), I found that majority of the strongly referenced objects on heap are coming from ArrivalWindow. 
> Currently ArrivalWindow uses BoundedStatsDeque which uses LinkedBlockingDeque<Long> deque. 
> For a cluster of size 1000, it will translate into 2 million objects. 
> We can use primitives and use an array of long(long[]). This will cut down on the number of objects and the change is not that big. 
>   



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