RFR: 8301342: Prefer ArrayList to LinkedList in LayoutComparator
Andrey Turbanov
aturbanov at openjdk.org
Mon Jan 30 12:01:10 UTC 2023
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
-------------
Commit messages:
- [PATCH] Prefer ArrayList to LinkedList in LayoutComparator
Changes: https://git.openjdk.org/jdk/pull/12274/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12274&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8301342
Stats: 5 lines in 1 file changed: 1 ins; 1 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/12274.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12274/head:pull/12274
PR: https://git.openjdk.org/jdk/pull/12274
More information about the client-libs-dev
mailing list