mirror of
https://github.com/octoleo/restic.git
synced 2024-11-25 22:27:35 +00:00
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_test.go | ||
index.go | ||
key.go | ||
master_index.go | ||
packer_manager_test.go | ||
packer_manager.go | ||
parallel_test.go | ||
parallel.go | ||
pool.go | ||
repack_test.go | ||
repack.go | ||
repository_test.go | ||
repository.go | ||
testing.go |