[concurrency-interest] ParallelArray Extension
tim at peierls.net
Wed Dec 19 12:09:19 EST 2007
On Dec 19, 2007 10:13 AM, Kasper Nielsen <kasper at kav.dk> wrote:
> Tim Peierls wrote:
> > These sound like applications for map-reduce:
> > 1. w.withMapping(elementsToSingletonSets).reduce(combineSets);
> > 2. w.withMapping(elementsToAggregates).reduce(combineAggregates);
> > I'm don't know whether these will perform as well in practice as the
> > solutions you've come up with, but they seem essentially equivalent to
> > your proposed combineReduce.
> From a functional standpoint this works fine, but it doesn't really
> perform. If I create a new object in withMapping. I would need to create
> a new HashSet/Aggregate for each element in ParallelArray.
Aren't you effectively doing the same thing in your combineReduce examples?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest