Re: Parallel implementation of map

2016-05-11 Thread Russel Winder via Digitalmars-d-learn
On Wed, 2016-05-11 at 13:01 +, 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. > > h

Re: Parallel implementation of map

2016-05-11 Thread VlasovRoman via Digitalmars-d-learn
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

Re: Parallel implementation of map

2016-05-11 Thread Daniel Kozak via Digitalmars-d-learn
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 accelerati

Parallel implementation of map

2016-05-11 Thread VlasovRoman via Digitalmars-d-learn
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