Daryn Sharp created HADOOP-14659:
------------------------------------

             Summary: 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


{{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: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to