Can you copy files faster through multithreading?
Change . To clarify, suppose you are using CopyFile (src, tgt). It seems logical that under certain circumstances you can use multiple threads to speed things up.
Edit A few more thoughts:
Naturally, it depends on the HW / storage in question.
If you copy from one disk to another, for example, it’s pretty clear that you can read and write at the same time using two streams, thereby saving the cost of the fastest of the two (usually reading). But you do not need many threads to read / write in parallel, just async-IO.
But if async-IO can really speed up (up to 2x) when reading / writing from different disks, why is this not a standard CopyFile implementation? (or that?)
source
share