Speed optimization of Spliterators.spliteratorUnknownSize for parallel case

Paul Sandoz paul.sandoz at oracle.com
Wed Jul 15 12:23:57 UTC 2015

On Jul 15, 2015, at 2:20 PM, Paul Sandoz <Paul.Sandoz at oracle.com> wrote:
>> By the way currently it's possible to create an IteratorSpliterator
>> with estimated size:
>> Spliterators.spliterator(iterator, estimatedSize, Spliterator.CONCURRENT);
>> Of course it's a misuse of CONCURRENT flag, but it's not used
>> otherwisely by stream API, thus currently it has no unwanted
>> side-effects.
> Very sneaky :-) but not something we cannot encourage.

I meant to say:

  ... but something we cannot encourage.


More information about the core-libs-dev mailing list