[
https://issues.apache.org/jira/browse/CASSANDRA-5538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Ellis updated CASSANDRA-5538:
--------------------------------------
Attachment: 5538-2.txt
2nd patch to send dc-local replicas inline instead of putting them in a Map.
(Note that I ninja-committed 62f429337caf0aa83b68720a5904e8527b840c80 ahead of
this, might want to review that too. :)
> Reduce Empty Map allocations in StorageProxy.sendToHintedEndpoints
> ------------------------------------------------------------------
>
> Key: CASSANDRA-5538
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5538
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0
> Reporter: Dave Brosius
> Assignee: Dave Brosius
> Priority: Trivial
> Fix For: 2.0
>
> Attachments: 5538-2.txt, 5538.txt
>
>
> StorageProxy.sendToHintedEndpoints allocates HashMaps consistently that are
> very often not used.
> See output: http://pastebin.com/jEaBxz1h
> Format is
> Type Date SourceLine CollectionSize NumBuckets NumBucketsUsed
> The snapshot is taken after the size of the collection hasn't changed for 5
> seconds.
> Postpone creation of hashmap 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