You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2007/08/23 02:16:30 UTC
[jira] Issue Comment Edited: (HADOOP-1759) File name should be
represented by a byte array instead of a String
[ 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.