Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9557

Reduce object allocation in PB conversion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.8.0, 3.0.0-alpha1
    • hdfs-client
    • None
    • Reviewed

    Description

      PB conversions use ByteString.copyFrom to populate the builder. Unfortunately this creates unique instances for empty arrays instead of returning the singleton ByteString.EMPTY.

      Attachments

        1. HDFS-9557.patch
          7 kB
          Daryn Sharp
        2. HDFS-9557.patch
          7 kB
          Daryn Sharp

        Activity

          People

            daryn Daryn Sharp
            daryn Daryn Sharp
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: