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

Andrey Turbanov aturbanov at openjdk.org
Tue Feb 28 20:24:14 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.

This pull request has now been integrated.

Changeset: 88151758
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/881517586d7b6d26c5589c3459902eb964ce9030
Stats:     9 lines in 1 file changed: 1 ins; 2 del; 6 mod

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

Reviewed-by: jpai, vtewari, stsypanov, dfuchs

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

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


More information about the net-dev mailing list