Skip to content

Combine multiple small files into single blocks #66

Closed

Description

@sourcefrog

The complement to #9.

Sketch:

  • hold an open block compressor/hasher for the duration of one index block (lazily created when needed)
  • files smaller than, say, 10kiB, are directed here rather than to their own block
  • flush the block before completing the index

We won't know the addresses to write into the index until the block is written out.

For more details see https://github.com/sourcefrog/conserve/blob/main/doc/rfc/combining-small-blocks.md

Work to do:

  • Teach readers to read partial blocks (done in 1109723).
  • Probably, separate out a backup function from the generic copy_tree.
  • Don't write files into the backup one at a time, but rather assemble a group of files enough to make one index hunk.
  • Don't make exclusions part of the state of the tree: rather, an argument to iterating the tree.
  • BlockDir::get should probably cache recently-read decompressed blocks, so that we don't read and decompress the combined blocks repeatedly

Activity

  1. added this to the milestone on Apr 30, 2018
  2. modified the milestones: , 1.0 basic features on Oct 11, 2020
  3. self-assigned this
    on Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions