[ 
https://issues.apache.org/jira/browse/HADOOP-14659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16090006#comment-16090006
 ] 

Rushabh S Shah commented on HADOOP-14659:
-----------------------------------------

+1 non-binding.

> 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]

Reply via email to