mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 02:48:55 +00:00
fc05e35a08
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_parallel_test.go | ||
index_parallel.go | ||
index_test.go | ||
index.go | ||
indexmap_test.go | ||
indexmap.go | ||
master_index_test.go | ||
master_index.go | ||
testing.go |