Hadoop Common
  1. Hadoop Common
  2. HADOOP-1094

Optimize readFields and write methods in record I/O

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 0.13.0
    • Component/s: record
    • Labels:
      None
    • Environment:

      All

      Description

      Optimize generated write() and readFields() methods, so that they do not have to create BinaryOutputArchive or BinaryInputArchive every time these methods are called on a record. These will be done via static ThreadLocal variable in Binary Archives.

      1. jute-patch.txt
        8 kB
        Milind Bhandarkar

        Activity

        Milind Bhandarkar created issue -
        Milind Bhandarkar made changes -
        Field Original Value New Value
        Summary OOptimize readFields and write methods in record I/O Optimize readFields and write methods in record I/O
        Hide
        Milind Bhandarkar added a comment -

        This patch implements write and readFields using the static get method of BinaryRecord

        {Out,In}

        put that returns a ThreadLocal variable instead of constructing a new one each time write or readFields is called.

        Show
        Milind Bhandarkar added a comment - This patch implements write and readFields using the static get method of BinaryRecord {Out,In} put that returns a ThreadLocal variable instead of constructing a new one each time write or readFields is called.
        Milind Bhandarkar made changes -
        Attachment jute-patch.txt [ 12353769 ]
        Milind Bhandarkar made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Doug Cutting added a comment -

        I just committed this. Thanks, Milind!

        Show
        Doug Cutting added a comment - I just committed this. Thanks, Milind!
        Doug Cutting made changes -
        Resolution Fixed [ 1 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Milind Bhandarkar
            Reporter:
            Milind Bhandarkar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development