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

XmlImageVisitor - Prefer Array over LinkedList

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.1.0
    • hdfs
    • 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.1.patch
          2 kB
          David Mollitor
        2. HDFS-13168.2.patch
          3 kB
          David Mollitor

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment