hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haohui Mai (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9670) Use a long to replace NfsTime
Date Mon, 16 Sep 2013 17:06:52 GMT

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

Haohui Mai commented on HADOOP-9670:
------------------------------------

An NfsTime instance has to be serialized into a XDR tuple (i.e., (seconds, nanoseconds)) when
it crosses the network wire. It seems to me that it is more efficient to keep both values
in the memory rather than performing a division and a modularization during serialization.
                
> Use a long to replace NfsTime
> -----------------------------
>
>                 Key: HADOOP-9670
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9670
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: nfs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Haohui Mai
>            Priority: Minor
>         Attachments: HADOOP-9670.patch
>
>
> NfsTime is class with two int's.  It can be replaced a long for better performance and
smaller memory footprint.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message