Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13168

XmlImageVisitor - Prefer Array over LinkedList

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0
    • Component/s: hdfs
    • Labels:
      None

      Description

      ArrayDeque

      This class is likely to be faster than Stack when used as a stack, and faster than LinkedList when used as a queue.

      .. not to mention less memory fragmentation (single backing array v.s. many ArrayList nodes).

      https://docs.oracle.com/javase/8/docs/api/java/util/ArrayDeque.html

        Attachments

        1. HDFS-13168.2.patch
          3 kB
          BELUGA BEHR
        2. HDFS-13168.1.patch
          2 kB
          BELUGA BEHR

          Activity

            People

            • Assignee:
              belugabehr BELUGA BEHR
              Reporter:
              belugabehr BELUGA BEHR
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: