Withdrawn: 8327858: Improve spliterator and forEach for single-element immutable collections

duke duke at openjdk.org
Sun Jul 21 07:53:45 UTC 2024


On Wed, 20 Sep 2023 04:52:31 GMT, Chen Liang <liach at openjdk.org> wrote:

> Please review this patch that:
> 1. Implemented `forEach` to optimize for 1 or 2 element collections.
> 2. Implemented `spliterator` to optimize for a single element.
> 
> The default implementations for multiple-element immutable collections are fine as-is, specializing implementation doesn't provide much benefit.

This pull request has been closed without being integrated.

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

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


More information about the core-libs-dev mailing list