Suppose there is a large number of small files.

How can I quickly copy them from one place to another?

Will concurrency give any benefit?

  • one
    The bottleneck will most likely be the drive itself, so many streams will not benefit. - Vladimir Martyanov
  • @ Vladimir Martianov if SSD, then, in theory, should give. - rjhdby
  • @rjhdby Hm ... I think the implementation will be heavily dependent. Especially if the recording starts to fall on one crystal. - Vladimir Martyanov
  • @ Vladimir Martiyanov , moreover, if the disk is spindle, then a lot of threads, on the contrary, can rather slow down the process - rjhdby
  • @rjhdby I thought about it, but the real measurements are lazy to produce :-) - Vladimir Martyanov

1 answer 1

If you have a spindle drive, then multithreading can, on the contrary, slow down the process, since the disk will constantly position the head while serving the threads in turn.

I will not say for SSD, but the narrow-minded logic suggests two options: 1) There will be a benefit. 2) There will be no benefit, but there will be no drawdown either.

Option with local archiving (without compression for example) and the subsequent transfer of the archive is not considered?