Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-5196

avoiding unnecessary byte[] allocation in SequenceFile.CompressedBytes and SequenceFile.UncompressedBytes

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.21.0
    • Fix Version/s: 0.21.0
    • Component/s: io
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      SequenceFile.CompressedBytes and SequenceFile.UncompressedBytes are used by the SequenceFile's raw bytes reading/writing API. The current implementation does not reuse the internal byte[] and causes unnecessary buffer allocation and initializaiton (zeroing the buffer).

        Attachments

        1. HADOOP-5196-trunk.patch
          1 kB
          Hong Tang

          Activity

            People

            • Assignee:
              hong.tang Hong Tang
              Reporter:
              hong.tang Hong Tang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment