hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Shvachko (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (HADOOP-1759) File name should be represented by a byte array instead of a String
Date Thu, 23 Aug 2007 00:16:30 GMT

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

shv edited comment on HADOOP-1759 at 8/22/07 5:15 PM:
----------------------------------------------------------------------

This is about saving bytes.
Using Text as an object with a length field will add  32 bytes (28 as Sameer calculated +
padding) for each name.
For regular (ascii) file names String and Text have almost the same memory overhead.


      was (Author: shv):
    This is about saving bytes.
Using Text as an object with a length field will add  24 bytes for each name.
For regular (ascii) file names String and Text have almost the same memory overhead.

  
> File name should be represented by a byte array instead of a String
> -------------------------------------------------------------------
>
>                 Key: HADOOP-1759
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1759
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.14.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.15.0
>
>         Attachments: byteName.patch
>
>
> This patch changes INode.name type to byte[], as outlined in HADOOP-1687 (4).
> I submit it as a separate patch since it does not touch a lot of code, just INode.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message