[RFR] [8u-JFR] 8238076: Fix OpenJDK 7 Bootstrap Broken by JFR Backport
Martin Buchholz
martinrb at google.com
Wed Jan 29 15:35:10 UTC 2020
On Wed, Jan 29, 2020 at 12:28 AM Aleksey Shipilev <shade at redhat.com> wrote:
>
> Performance-wise, I think the only reason to prefer LinkedList over
> ArrayList if you do
> insertions/deletions in weird places (like, in the head). It almost never
> happens, so my goto
> performance optimization is usually a blind s/LinkedList/ArrayList/g :D
>
Proper comparison would be LinkedList against ArrayDeque.
LinkedList's best use case is a queue that spends most of its time empty;
then LinkedList is the most space efficient.
More information about the jdk8u-dev
mailing list