Page 1 of 1

More efficient internal stream datastructure

Posted: 20 Jun 2011 19:48
by Maƫl
When a lot of edits are done to a file, the in-memory representation gets very fragmented.
This causes slow saving.
Creating minimum-size blocks would fix this and also avoid writing whole sectors in one go instead of writing them several times (bad for flash drives).

Example scenario: File with a lot of zero bytes. Zero bytes get stripped => lots of small edits => lots of tree-nodes => slow and several writes to same sector.