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

Vyom Tewari vtewari at openjdk.org
Mon Feb 27 10:10:08 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 OK to me.

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

Marked as reviewed by vtewari (Committer).

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


More information about the net-dev mailing list