hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-13442) Optimize UGI group lookups
Date Fri, 29 Jul 2016 17:36:20 GMT
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

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

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

View raw message