taiyinglee created HBASE-20509:
----------------------------------

             Summary: putting 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


[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);

 



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

Reply via email to