|
|
|
|
|
by AnotherGoodName
1085 days ago
|
|
Complexity? You mmap it in and then read the multi terrabyte file as if it was an array. The opposite with actual file io sucks in terms of complexity. I get that you can write bespoke code that performs better but mmap is a one liner to turn a file into an array. |
|
As for why disk reads fail, yes that's a thing. Less common on internal storage (bad sectors), but more common on removable USB devices or Network drives (especially on wifi).