Daryn Sharp created HADOOP-13442:
------------------------------------

             Summary: Optimize UGI group lookups
                 Key: HADOOP-13442
                 URL: https://issues.apache.org/jira/browse/HADOOP-13442
             Project: Hadoop Common
          Issue Type: Improvement
            Reporter: Daryn Sharp
            Assignee: Daryn Sharp


{{UGI#getGroups}} and its usage is inefficient.  The list is unnecessarily 
converted to multiple collections.

For _every_ invocation, the {{List<String>}} from the group provider is 
converted into a {{LinkedHashSet<String>}} (to de-dup), back to a {{String[]}}. 
 Then callers testing for group membership convert back to a {{List<String>}}.  
This should be done once to reduce allocations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to