Setting of UNORDERED on concurrent collectors

Doug Lea dl at cs.oswego.edu
Mon Apr 8 13:57:34 PDT 2013


On 04/08/13 16:41, Joe Bowbeer wrote:

> I'm OK with this, but I wish groupingByConcurrent could go away.
>

These were the kinds of thoughts that led me last fall to suggest
that we just tell people to do it themselves as a little idiom:
   chm = ...
   c.parallelStream().forEach( chm.merge(x->keyFor(x), x, mergefn); }

The main downside is that this, the most commonly recommended
way of doing parallel groupBy, would not be in the family of
collect methods. Still maybe worth reconsidering though.

-Doug



More information about the lambda-libs-spec-experts mailing list