|
|
|
|
|
by shakna
387 days ago
|
|
Files are... Flat streams. Sort of. So if you rewrite an index at the head of the file, you may end up having to rewrite everything that comes afterwards, to push it further down in the file, if it overflows any padding offset. Which makes appending an extremely slow operation. Whereas seeking to end, and then rewinding, is not nearly as costly. |
|
In theory, files should be just unrolled linked lists (or trees) of bytes, but I guess a lot of internal code still assumes full, aligned blocks.