Integrated: 8301342: Prefer ArrayList to LinkedList in LayoutComparator

Andrey Turbanov aturbanov at openjdk.org
Sun Feb 5 08:47:54 UTC 2023


On Sat, 28 Jan 2023 14:54:38 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> There is only add/iterator calls on this list. No removes from the head or something like this. Not sure why LinkedList was used, but ArrayList should be preferred as more efficient and widely used (more chances for JIT) collection

This pull request has now been integrated.

Changeset: d67bfe21
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d67bfe21a23fea2d9ef4eef4e811b774cca2ab94
Stats:     5 lines in 1 file changed: 1 ins; 1 del; 3 mod

8301342: Prefer ArrayList to LinkedList in LayoutComparator

Reviewed-by: prr, serb

-------------

PR: https://git.openjdk.org/jdk/pull/12274



More information about the client-libs-dev mailing list