Assertion Error

Vino.B vino.bheeman at hotmail.com
Tue Sep 19 17:37:39 UTC 2017


On Wednesday, 13 September 2017 at 15:27:30 UTC, Moritz Maxeiner 
wrote:
> On Wednesday, 13 September 2017 at 15:12:57 UTC, Vino.B wrote:
>> On Wednesday, 13 September 2017 at 11:03:38 UTC, Moritz 
>> Maxeiner wrote:
>>> On Wednesday, 13 September 2017 at 07:39:46 UTC, Vino.B wrote:
>>>>  [...]
>>>
>>> [...]
>>>
>>> ---
>>> foreach (string Fs; parallel(SizeDirlst[0 .. $], 1))
>>> {
>>>   MSresult.get ~= coSizeDirList(Fs.strip, SizeDir);
>>> }
>>> ---
>>
>> Hi Max,
>
> It's Moritz, not Max. ;)
>
>>
>>  Below is the explanation of the above code.
>>
>> [...]
>
> AFAICT that's a reason why you want parallelization of 
> coSizeDirList, but not why you need to spawn another thread 
> inside of an *already parallelelized" task. Try my shortened 
> parallel foreach loop vs your longer one and monitor system 
> load (threads, memory, etc).

Hi Moritz,

  Thank you very much, it was very helpful and time saving and 
fast.

From,
Vino.B


More information about the Digitalmars-d-learn mailing list