On Wed, 20 Sep 2023 04:52:31 GMT, Chen Liang <[email protected]> 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
