a pretty exciting result for parallel D lang rmd following defrag by name

Somedude lovelydear at mailmetrash.com
Sun Apr 8 15:17:45 PDT 2012


Le 09/04/2012 00:15, Somedude a écrit :
> Le 08/04/2012 18:14, Jay Norwood a écrit :
>> On Sunday, 8 April 2012 at 09:21:43 UTC, Somedude wrote:
>>> Hi,
>>>
>>> You seem to have done a pretty good job with your parallel unzip. Have
>>> you tried a parallel zip as well ?
>>> Do you think you could include this in std.zip when you're done ?
>>
>> I'm going to do a parallel zip as well.  There is already parallel zip
>> utility available with 7zip, so I haven't looked closely at D's std.zip.
>>
>> These parallel implementations all bring in std.parallelism as a
>> dependency, and I don't know if that is acceptable.  I'm just putting
>> them in my github for now, along with examples.
>>
>>
> Well, you can always do something like this:
> 
> version (parallel)
> {
>   import std.parallelism;
>   // multithreaded
>   ...
> }
> else
> {
>   // single thread
>   ...
> }

Or rather:

// single thread zip
...
version (parallel)
{
   import std.parallelism;
   // multithreaded
   ...
}



More information about the Digitalmars-d mailing list