[concurrency-interest] ParallelArray Extension

Tim Peierls 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?

--tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20071219/f8e56709/attachment.html 


More information about the Concurrency-interest mailing list