Integrated: JDK-8297299 SequenceInputStream should not use Vector

Markus KARG duke at openjdk.org
Tue Nov 22 05:07:35 UTC 2022


On Sat, 19 Nov 2022 21:36:56 GMT, Markus KARG <duke at openjdk.org> wrote:

> There is no need to use a temporary Vector within the constructor of SynchronizedInputStream, as more efficient (non-synchronized) alternative code (like List.of) will do the same in possibly less time. While the optimization is not dramatic, it still makes sense to replace Vector unless synchronization is really needed.

This pull request has now been integrated.

Changeset: 06968548
Author:    Markus Karg <markus at headcrashing.eu>
Committer: Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/069685489afcea9b31491f0d9fec8cc52e210e99
Stats:     11 lines in 1 file changed: 2 ins; 5 del; 4 mod

8297299: SequenceInputStream should not use Vector

Reviewed-by: alanb, jpai

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

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


More information about the core-libs-dev mailing list