2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00
restic/internal
Michael Eischer fc05e35a08 index: let indexmap.Each iterate in allocation order
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.
2023-05-30 20:12:36 +02:00
..
archiver test: use parameter instead of hardcoded constant 2023-05-18 21:17:53 +02:00
backend Merge pull request #4339 from greatroar/ioctl 2023-05-26 19:34:14 +02:00
bloblru bloblru: Upgrade to hashicorp/golang-lru/v2 2022-11-27 17:18:13 +01:00
cache Remove unused context or testing parameters 2023-05-18 21:17:53 +02:00
checker check: Fix flaky TestCheckerModifiedData 2023-05-01 17:18:19 +02:00
crypto Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
debug Rename unused testing parameter to _ 2023-05-18 21:17:53 +02:00
dump dump: Report filename with tar.ErrFieldTooLong 2023-04-27 11:45:41 +02:00
errors errors: Drop WithMessage 2022-10-14 14:06:47 +02:00
filter remove no longer necessary conditional compiles 2022-11-27 13:18:44 +01:00
fs Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
fuse Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
hashing Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
index index: let indexmap.Each iterate in allocation order 2023-05-30 20:12:36 +02:00
migrations Use _ as parameter name for unused Context 2023-05-18 21:15:45 +02:00
options backend, options: Prefer strings.Cut to SplitN 2022-12-02 19:19:14 +01:00
pack repository: optimize MasterIndex.Each 2022-09-24 12:21:59 +02:00
repository repository: Fix panic in benchmarkLoadIndex 2023-05-28 23:55:47 +02:00
restic Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
restorer Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
selfupdate Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
test test: use standard logging methods from testing for the test helpers 2023-05-26 19:34:57 +02:00
textfile Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
ui Merge pull request #4339 from greatroar/ioctl 2023-05-26 19:34:14 +02:00
walker Use _ as parameter name for unused Context 2023-05-18 21:15:45 +02:00