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

The default constructor of BytesWritable should not create a 100-byte array.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.18.0
    • io
    • None
    • Reviewed

    Description

      The default byte array should be an empty array and the empty array should be stored in a static final variable. Then, there is no unnecessary memory allocation.

      Attachments

        1. 3274_20080417.patch
          0.8 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: