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

Sergey Tsypanov stsypanov at openjdk.org
Mon Feb 27 11:05:11 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 stsypanov (Author).

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

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


More information about the net-dev mailing list