hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jing Zhao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-3805) A small improvement of SerialNumberManager$SerialNumberMap.get
Date Wed, 15 Aug 2012 02:31:37 GMT

     [ https://issues.apache.org/jira/browse/HDFS-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jing Zhao updated HDFS-3805:
----------------------------

    Attachment: HDFS-3805.patch

Use the same testing environment as HDFS-2421, the get performance can be improved by around
10% with 100 threads.
                
> A small improvement of SerialNumberManager$SerialNumberMap.get
> --------------------------------------------------------------
>
>                 Key: HDFS-3805
>                 URL: https://issues.apache.org/jira/browse/HDFS-3805
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 3.0.0
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>            Priority: Trivial
>             Fix For: 3.0.0
>
>         Attachments: HDFS-3805.patch
>
>
> Instead of use containsKey() + get() to get the value from the HashMap, we can do get()
once and check if the result is null

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message