Interleaved parallel file read slower than sequential read?

前端 未结 4 949
逝去的感伤
逝去的感伤 2021-01-17 17:25

I have implemented a small IO class, which can read from multiple and same files on different disks (e.g two hard disks containing the same file). In sequential case, both d

4条回答
  •  一个人的身影
    2021-01-17 18:30

    If you want to do a parallel read, break the read into two sequential reads. Find the halfway point and read the first half from the first file and the second half from the second file.

提交回复
热议问题