Concerns about parallel streams
Doug Lea
dl at cs.oswego.edu
Fri Jul 12 06:06:34 PDT 2013
On 07/12/13 02:58, David Holmes wrote:
> That said to make the selection in the code you really would want a
> stream(boolean parallel) method, otherwise it is going to be ugly.
(Hey, how come none of you supported this when I first suggested it :-)
Also bear in mind that we do have in place the much more
programmer-controllable but non-fluent CHM bulk method API,
that I put into place to address many of these concerns.
Considering that a lot of parallel usages will be for big-data-ish
stuff that requires Maps anyway, we have a good story for this.
It might have been nicer to also have done almost the same
thing for customized, re-invented ParallelArray, since this
is the other most common set of parallel usages for which
some users want/need explicit control. A year ago, I speculated
that I might do this as a non-JDK extension, and still
might, although plans for this are now also intertwined with
prospects of value/struct/tuple support.
Anyway, as you might recall or surmise, from day one,
my main fear about all this was: Oh great, now billions
of people are all going to start blaming ME for all their
performance problems :-)
-Doug
More information about the lambda-libs-spec-experts
mailing list