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

Daniel Fuchs dfuchs at openjdk.org
Tue Feb 28 14:24:02 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.

Marked as reviewed by dfuchs (Reviewer).

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

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


More information about the net-dev mailing list