[
https://issues.apache.org/jira/browse/HDDS-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bharat Viswanadham resolved HDDS-3734.
--------------------------------------
Fix Version/s: 0.6.0
Resolution: Fixed
> Improve the performance of SCM with 3.86% by avoid TreeSet.addAll
> -----------------------------------------------------------------
>
> Key: HDDS-3734
> URL: https://issues.apache.org/jira/browse/HDDS-3734
> Project: Hadoop Distributed Data Store
> Issue Type: Sub-task
> Reporter: runzhiwang
> Assignee: runzhiwang
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.6.0
>
> Attachments: output.svg, screenshot-1.png
>
>
> TreeSet.addAll cost 3.86% cpu.
> we need not TreeSet.addAll which cost 3.86% cpu, because the DatanodeDetails
> which got from NodeStateMap::ConcurrentHashMap<NodeState, Set<UUID>>
> stateMap, the value type of stateMap is a set, so there is no duplicate
> DatanodeDetails. we can replicate TreeSet.addAll to list.addAll
>
> !screenshot-1.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]