You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "BELUGA BEHR (JIRA)" <ji...@apache.org> on 2018/02/18 19:13:00 UTC

[jira] [Created] (HDFS-13168) XmlImageVisitor - Prefer Array over LinkedList

BELUGA BEHR created HDFS-13168:
----------------------------------

             Summary: XmlImageVisitor - Prefer Array over LinkedList
                 Key: HDFS-13168
                 URL: https://issues.apache.org/jira/browse/HDFS-13168
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: hdfs
    Affects Versions: 3.0.0
         Environment: {{ArrayDeque}}

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

.. 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
            Reporter: BELUGA BEHR
         Attachments: HDFS-13168.1.patch





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org