reallymine icon indicating copy to clipboard operation
reallymine copied to clipboard

Use write buffer when writing resulting image

Open Gregy opened this issue 8 years ago • 2 comments

This modification resulted in large performance gain on my system (5x faster). Reasoning behind this change is that we should not call the kernel with each sector (512b) and instead accumulate more data before sending it.

Please review the change carefully, this is my first encounter with golang and I do not understand it very well (but I used this code to successfully recover my 2T WD drive)

Gregy avatar Dec 18 '16 13:12 Gregy

No performance benefit for me, but works.

wolfgang-noichl avatar Mar 23 '17 13:03 wolfgang-noichl

test with Intel G5400 change from ~950Kb/s to ~10Mb/s. Also cpu is always at 100% so with faster cpu gain can be better.

maxisvk avatar Feb 13 '19 08:02 maxisvk