RFR: 8303216: Prefer ArrayList to LinkedList in sun.net.httpserver.ServerImpl
Andrey Turbanov
aturbanov at openjdk.org
Sun Feb 26 20:19:41 UTC 2023
LinkedList is used in a few places in `ServerImpl`.
There is only add/iterator/clear/size calls on this lists. No removes from the head or something like this. ArrayList should be preferred as more efficient and widely used (more chances for JIT) collection.
-------------
Commit messages:
- [PATCH] Prefer ArrayList to LinkedList in sun.net.httpserver.ServerImpl
Changes: https://git.openjdk.org/jdk/pull/12756/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12756&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8303216
Stats: 9 lines in 1 file changed: 1 ins; 2 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/12756.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12756/head:pull/12756
PR: https://git.openjdk.org/jdk/pull/12756
More information about the net-dev
mailing list