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

Brandon Li commented on HADOOP-9670:
------------------------------------

Sorry, Haohui. I just realized there is one problem with the serialization 
method. The correct format is: 4 bytes as seconds, and then another 4 bytes as 
nanoseconds. Putting 8 bytes microseconds is not right. The same problem is 
also in de-serialization. Looks like two int is more convenient than one long 
and also saves the conversion between second-nanosecond to milliseconds.





                
> 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

Reply via email to