You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2015/12/15 21:17:46 UTC
[jira] [Comment Edited] (HDFS-9557) Reduce object allocation in PB
conversion
[ https://issues.apache.org/jira/browse/HDFS-9557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15058611#comment-15058611 ]
Colin Patrick McCabe edited comment on HDFS-9557 at 12/15/15 8:16 PM:
----------------------------------------------------------------------
+1 for the idea, pending fixing the issue [~cnauroth] found.
Long-term, I think we might want to switch to a PB library that does less object allocation.
was (Author: cmccabe):
+1 pending jenkins.
Long-term, I think we might want to switch to a PB library that does less object allocation.
> Reduce object allocation in PB conversion
> -----------------------------------------
>
> Key: HDFS-9557
> URL: https://issues.apache.org/jira/browse/HDFS-9557
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: hdfs-client
> Affects Versions: 2.8.0
> Reporter: Daryn Sharp
> Assignee: Daryn Sharp
> Attachments: HDFS-9557.patch
>
>
> PB conversions use {{ByteString.copyFrom}} to populate the builder. Unfortunately this creates unique instances for empty arrays instead of returning the singleton {{ByteString.EMPTY}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)