You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Bharat Viswanadham (Jira)" <ji...@apache.org> on 2020/06/06 04:50:00 UTC
[jira] [Resolved] (HDDS-3734) Improve the performance of SCM with
3.86% by avoid TreeSet.addAll
[ 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: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org