RFR: 8303216: Prefer ArrayList to LinkedList in sun.net.httpserver.ServerImpl

Jaikiran Pai jpai at openjdk.org
Mon Feb 27 09:00:13 UTC 2023


On Sun, 26 Feb 2023 20:12:09 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> 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.

Looks fine to me.

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

Marked as reviewed by jpai (Reviewer).

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


More information about the net-dev mailing list