[
https://issues.apache.org/jira/browse/HADOOP-14659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daryn Sharp updated HADOOP-14659:
---------------------------------
Status: Patch Available (was: Open)
> UGI getShortUserName does not need to search the Subject
> --------------------------------------------------------
>
> Key: HADOOP-14659
> URL: https://issues.apache.org/jira/browse/HADOOP-14659
> Project: Hadoop Common
> Issue Type: Improvement
> Components: common
> Affects Versions: 2.0.0-alpha
> Reporter: Daryn Sharp
> Assignee: Daryn Sharp
> Attachments: HADOOP-14659.patch
>
>
> {{UGI#getShortUserName}} searches the subject for the {{User}} instance.
> It's not cheap to iterate a synchronized set, copy matches into a new set,
> then iterating that set. The UGI ctor already set the {{User}} into a final
> field...
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]