[
https://issues.apache.org/jira/browse/HADOOP-13442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konstantin Shvachko updated HADOOP-13442:
-----------------------------------------
Fix Version/s: 2.7.5
Just committed along with broken tests HDFS-10738 and MAPREDUCE-6750 to
branch-2.7. Thank you Daryn.
Updating Fix Version for all three.
> 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
> Fix For: 2.8.0, 3.0.0-alpha1, 2.7.5
>
> Attachments: HADOOP-13442.patch
>
>
> {{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.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]