Skip to content

borg2: compact: optimize by caching used object ids of an archive #9814

Description

@ThomasWaldmann

borg compact currently iterates over all archives, over all archived items, over all chunks in the items to flag the used chunks in the chunks index. Everything not flagged after that is not used.

Guess we could do that only once per archive and then cache the result: archive_id -> set of used chunks.

This could be very beneficial for people who have lots of large archives.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions