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

Improve DataOutputByteBuffer

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Not A Problem
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: common
    • Labels:
      None
    • Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: