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-14659) UGI getShortUserName does not need to search the Subject
Date Thu, 13 Jul 2017 20:18:00 GMT
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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org


Mime
View raw message