forked from TrueCloudLab/restic
539599d1f1
When backing up several million files (>14M tested here) with few changes, a large amount of time is spent failing to find an id in an index and creating an error to signify this. Since this is checked using the Has method, which doesn't use this error, this time creating the error is wasted. Instead, directly check if the given id and type are present in the index. This also avoids reporting all the packs containing this blob, further reducing cpu usage. |
||
---|---|---|
.. | ||
testdata | ||
doc.go | ||
index.go | ||
index_test.go | ||
key.go | ||
master_index.go | ||
packer_manager.go | ||
packer_manager_test.go | ||
parallel.go | ||
parallel_test.go | ||
pool.go | ||
repack.go | ||
repack_test.go | ||
repository.go | ||
repository_test.go | ||
testing.go |