You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "BELUGA BEHR (JIRA)" <ji...@apache.org> on 2018/03/14 15:25:00 UTC
[jira] [Comment Edited] (HIVE-18344) Remove LinkedList from
SharedWorkOptimizer.java
[ https://issues.apache.org/jira/browse/HIVE-18344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16398743#comment-16398743 ]
BELUGA BEHR edited comment on HIVE-18344 at 3/14/18 3:24 PM:
-------------------------------------------------------------
Yes, the class has changed so my first patch. I have updated the patch to use ArrayList in the remaining places. It's still a tad advantageous to use ArrayList here for memory consumption and performance.
https://stackoverflow.com/questions/8069370/is-an-arraylist-or-a-linkedlist-better-for-sorting
was (Author: belugabehr):
https://stackoverflow.com/questions/8069370/is-an-arraylist-or-a-linkedlist-better-for-sorting
> Remove LinkedList from SharedWorkOptimizer.java
> -----------------------------------------------
>
> Key: HIVE-18344
> URL: https://issues.apache.org/jira/browse/HIVE-18344
> Project: Hive
> Issue Type: Improvement
> Components: HiveServer2
> Affects Versions: 3.0.0
> Reporter: BELUGA BEHR
> Assignee: BELUGA BEHR
> Priority: Trivial
> Attachments: HIVE-18344.1.patch, HIVE-18344.2.patch
>
>
> Prefer {{ArrayList}} over {{LinkedList}} especially in this class because the initial size of the collection is known.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)