You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Appy (JIRA)" <ji...@apache.org> on 2018/01/02 22:21:00 UTC

[jira] [Commented] (HBASE-19614) Use ArrayDeque as Queue instead of LinkedList in CompoundBloomFilterWriter

    [ https://issues.apache.org/jira/browse/HBASE-19614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16308806#comment-16308806 ] 

Appy commented on HBASE-19614:
------------------------------

There's great ArrayDeque vs LinkedList discussion on [this stacktrace|https://stackoverflow.com/questions/6163166/why-is-arraydeque-better-than-linkedlist] which helped me convince myself that this change is probably good.

> Use ArrayDeque as Queue instead of LinkedList in CompoundBloomFilterWriter
> --------------------------------------------------------------------------
>
>                 Key: HBASE-19614
>                 URL: https://issues.apache.org/jira/browse/HBASE-19614
>             Project: HBase
>          Issue Type: Improvement
>          Components: hbase
>    Affects Versions: 3.0.0
>            Reporter: BELUGA BEHR
>            Assignee: BELUGA BEHR
>            Priority: Trivial
>         Attachments: HBASE-19614.1.patch
>
>
> {quote}
> ArrayDeque:
> 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* Stack when used as a stack, and faster than *LinkedList when used as a queue.*
> {quote}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)