BELUGABEHR commented on issue #870: ZOOKEEPER-3335: Prefer ArrayList over LinkedList URL: https://github.com/apache/zookeeper/pull/870#issuecomment-476962318 Array-based collections are generally faster and consume less memory. https://stackoverflow.com/questions/322715/when-to-use-linkedlist-over-arraylist-in-java On Tue, Mar 26, 2019, 11:16 PM 毛蛤丝 <[email protected]> wrote: > *@maoling* commented on this pull request. > > - Read the jdk doc > <https://docs.oracle.com/javase/8/docs/api/java/util/ArrayDeque.html>: > > This class is likely to be faster than Stack when used as a stack, and > faster than LinkedList when used as a queue. > > is this your intention for changing linkList from to arrayDeque > > - BTW,Could you plz give this issue a better name? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/apache/zookeeper/pull/870#pullrequestreview-219252275>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AL_vEw0sIuLOWC8ab62_o_W1SxXNbXLGks5vauJ6gaJpZM4cMIlb> > . >
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
