You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Daryn Sharp (JIRA)" <ji...@apache.org> on 2015/12/15 20:16:46 UTC

[jira] [Created] (HDFS-9557) Reduce object allocation in PB conversion

Daryn Sharp created HDFS-9557:
---------------------------------

             Summary: 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


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)