You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "taiyinglee (JIRA)" <ji...@apache.org> on 2018/04/30 23:22:00 UTC

[jira] [Updated] (HBASE-20509) Put List in HashSet directly without using addAll function to improve performance

     [ https://issues.apache.org/jira/browse/HBASE-20509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

taiyinglee updated HBASE-20509:
-------------------------------
    Summary: Put List in HashSet directly without using addAll function to improve performance  (was: put List in HashSet directly when initialized without using addAll function to improve performance)

> Put List in HashSet directly without using addAll function to improve performance
> ---------------------------------------------------------------------------------
>
>                 Key: HBASE-20509
>                 URL: https://issues.apache.org/jira/browse/HBASE-20509
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 3.0.0
>            Reporter: taiyinglee
>            Assignee: taiyinglee
>            Priority: Trivial
>         Attachments: HBASE-20509.v0.patch
>
>
> [https://docs.oracle.com/javase/7/docs/api/java/util/Collection.html]
> change
> Set<ServerName> serverSet = new HashSet<>();
>  serverSet.addAll(serverList);
> to
> Set<ServerName> serverSet = new HashSet<>(serverList);
> in
> ./hbase-server/src/main/java/org/apache/hadoop/hbase/favored/FavoredNodeAssignmentHelper.java
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)