You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2020/01/06 13:11:00 UTC

[jira] [Commented] (HDFS-15094) RBF : Reuse ugi string in ConnectionPoolID

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

Ayush Saxena commented on HDFS-15094:
-------------------------------------

The cost to get ConnectionPoolId from the HashMape is quite high due to use of ugi.toString().

> RBF : Reuse ugi string in ConnectionPoolID
> ------------------------------------------
>
>                 Key: HDFS-15094
>                 URL: https://issues.apache.org/jira/browse/HDFS-15094
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>
> The connectionPoolID Hash Code and equals contains ugi.toString(), These methods are used as part of getConnection() in ConnectionManager as part of every call.
> The ugi.toString() eats up considerable amount of time, the Hash Calculation itself is ~10 percent of the total time of the call. And even more for the equals method.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org