T
Tom
Given: A binary data file of records.
Task: Random access using seekg().
I've never found any documentation stating that the offset from begin
file marker is safe on a fragmented file. I've observed how binary
files are buffered in the past. But I have never tested against a
fragmented file. Perhaps I am paranoid or whatever. Maybe
fragmentation is no worse than changing tracks on the drive?
If the fragment starts at byte 50 and you offset 100 bytes from the
begin marker ... does the method scan for fragments? If so, is it any
faster than a sequential read method?
Any thoughts on the topic?
Please, no OT police comments. Thanks.
-- Tom
Task: Random access using seekg().
I've never found any documentation stating that the offset from begin
file marker is safe on a fragmented file. I've observed how binary
files are buffered in the past. But I have never tested against a
fragmented file. Perhaps I am paranoid or whatever. Maybe
fragmentation is no worse than changing tracks on the drive?
If the fragment starts at byte 50 and you offset 100 bytes from the
begin marker ... does the method scan for fragments? If so, is it any
faster than a sequential read method?
Any thoughts on the topic?
Please, no OT police comments. Thanks.
-- Tom