2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-16 10:05:25 +00:00
restic/internal/pack
greatroar 8bdfcf779f restic prune: Merge three loops over the index
There were three loops over the index in restic prune, to find
duplicates, to determine sizes (in pack.Size) and to generate packInfos.
These three are now one loop. This way, prune doesn't need to construct
a set of duplicate blobs, pack.Size doesn't need to contain special
logic for prune's use case (the onlyHdr argument) and pack.Size doesn't
need to construct a map only to have it immediately transformed into a
different map.

Some quick testing on a 160GiB local repo doesn't show running time or
memory use of restic prune --dry-run changing significantly.
2022-06-18 10:40:33 +02:00
..
doc.go Moves files 2017-07-23 14:19:13 +02:00
pack_internal_test.go pack: slightly expand testing of compressed blobs 2022-04-30 11:34:10 +02:00
pack_test.go repository: implement pack compression 2022-04-30 11:34:10 +02:00
pack.go restic prune: Merge three loops over the index 2022-06-18 10:40:33 +02:00