Thread overview
Parallel implementation of map
May 11, 2016
VlasovRoman
May 11, 2016
Daniel Kozak
May 11, 2016
VlasovRoman
May 11, 2016
Russel Winder
May 11, 2016
Hey, guys!
After many attempts pmap function was realized by me. This is analogous to taskPool.amap function, but I do not know how much he is good. In simple tests, it showed a corresponding acceleration. I would like to ask you to advise me options to improve this function. If all this makes sense, I can make a DUB package.

https://gist.github.com/VlasovRoman/4c78a123acd44b3da8b96b43637df080
May 11, 2016
Dne středa 11. května 2016 13:25:50 CEST, VlasovRoman via Digitalmars-d-learn  napsal(a):

> Hey, guys!
> After many attempts pmap function was realized by me. This is analogous to taskPool.amap function, but I do not know how much he is good. In simple tests, it showed a corresponding acceleration. I would like to ask you to advise me options to improve this function. If all this makes sense, I can make a DUB package.
>
> https://gist.github.com/VlasovRoman/4c78a123acd44b3da8b96b43637df080
>
>

Why just not use: https://dlang.org/phobos/std_parallelism.html#.TaskPool.map

May 11, 2016
On Wednesday, 11 May 2016 at 12:40:20 UTC, Daniel Kozak wrote:
> Dne středa 11. května 2016 13:25:50 CEST, VlasovRoman via Digitalmars-d-learn  napsal(a):
>
>> Hey, guys!
>> After many attempts pmap function was realized by me. This is analogous to taskPool.amap function, but I do not know how much he is good. In simple tests, it showed a corresponding acceleration. I would like to ask you to advise me options to improve this function. If all this makes sense, I can make a DUB package.
>>
>> https://gist.github.com/VlasovRoman/4c78a123acd44b3da8b96b43637df080
>>
>>
>
> Why just not use: https://dlang.org/phobos/std_parallelism.html#.TaskPool.map


I was trying it, but this issue was stopping me.

https://issues.dlang.org/show_bug.cgi?id=5710
May 11, 2016
On Wed, 2016-05-11 at 13:01 +0000, VlasovRoman via Digitalmars-d-learn wrote:
> On Wednesday, 11 May 2016 at 12:40:20 UTC, Daniel Kozak wrote:
> > 
[…]
> > Why just not use: https://dlang.org/phobos/std_parallelism.html#.TaskPool.map
> 
> I was trying it, but this issue was stopping me.
> 
> https://issues.dlang.org/show_bug.cgi?id=5710

There is a lot of hacking going on in a lot of code because of this problem, but even a bounty has failed to get anyone interested in fixing it.


-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder