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

Improve DataOutputByteBuffer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Not A Problem
    • 3.0.0
    • None
    • common
    • None
    • Patch

    Description

      • Use ArrayDeque instead of LinkedList
      • Replace an ArrayList that was being used as a queue with ArrayDeque
      • Improve write single byte method to hard-code sizes and save time

      Resizable-array implementation of the Deque interface. Array deques have no capacity restrictions; they grow as necessary to support usage. They are not thread-safe; in the absence of external synchronization, they do not support concurrent access by multiple threads. Null elements are prohibited. This class is likely to be ... faster than LinkedList when used as a queue.

      Attachments

        1. HADOOP-15148.1.patch
          2 kB
          David Mollitor

        Issue Links

          Activity

            People

              belugabehr David Mollitor
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: