mirror of
https://github.com/restic/restic.git
synced 2025-12-20 23:00:24 -05:00
Iterating through the indexmap according to the bucket order has the problem that all indexEntries are accessed in random order which is rather cache inefficient. As we already keep a list of all allocated blocks, just iterate through it. This allows iterating through a batch of indexEntries without random memory accesses. In addition, the packID will likely remain similar across multiple blobs as all blobs of a pack file are added as a single batch. |
||
|---|---|---|
| .. | ||
| index.go | ||
| index_parallel.go | ||
| index_parallel_test.go | ||
| index_test.go | ||
| indexmap.go | ||
| indexmap_test.go | ||
| master_index.go | ||
| master_index_test.go | ||
| testing.go | ||