parallel copy directory, faster than robocopy
Nick Sabalausky
a at a.a
Tue Feb 14 18:29:20 PST 2012
"Jay Norwood" <jayn at prismnet.com> wrote in message
news:jhcplo$1jj8$1 at digitalmars.com...
> Attached is the source for a small parallel app that copies a source
> folder to a destination. It creates the directory structure first using
> the breadth ordering, then uses a parallel foreach loop with the taskPool
> to copy all the regular files in parallel. On my corei7, this copied a
> 1.5GB folder with around 36K entries to a destination in about 11.5 secs
> (src and dest on the same ssd drive). This was about a second better than
> robocopy, which is the fastest alternative I could find. The regular
> win7-64 copy takes 41 secs for the same folder.
>
> I'd like to add wildcard processing for the sources, but haven't found a
> good example.
Nice!
Is it possible this could increase disk fragmentation though? Or do the
filesystem drivers on Win/Lin/etc work in a way that mitigates that
possibility?
More information about the Digitalmars-d-announce
mailing list