Directory Size

Vino vino.bheeman at hotmail.com
Sat Dec 9 21:15:09 UTC 2017


On Friday, 8 December 2017 at 19:10:09 UTC, vino wrote:
> On Thursday, 7 December 2017 at 12:19:00 UTC, Vino wrote:
>> On Thursday, 7 December 2017 at 09:04:19 UTC, Vino wrote:
>>> [...]
>>
>> Hi Andrea,
>>
>>  Was able to find a solution to the above issue by adding the 
>> replace function as below, the the code is working as 
>> expected, is there any chance of using parallel function as 
>> the file system contains about 500+ folders and the size of 
>> each folder ranges from 5GB - 500 GB so the run time of the 
>> above code is about an 2 hours.
>>
>> .map!(a => tuple(a[0].replace(",\\?\", ""), ((a[1].to!real)/ 
>> SGb ))));
>>
>> From,
>> Vino.B
>
> Hi All,
>
>  Any update on the above request.
>
> From,
> Vino.B

Hi Andrea,

   Your code is good, when compared to the performance between 
your code and my earlier code , my code seem to be much faster, 
my code execution takes 40 mins where as your code takes 2+ 
hours(no change in the environment) as in my code i have used 
parallel and tired to add the parallelism to your code but was 
not able to succeed. Hence i need to switch back to my code, in 
case if you find any method to add parallelism you your code 
please do let me know. Thank you very much for you help.

From,
Vino.B




More information about the Digitalmars-d-learn mailing list