2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00
restic/internal
Matthew Dawson 539599d1f1 repository/index: Optimize index.Has()
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.
2018-01-08 21:46:17 +01:00
..
archiver replace ad-hoc context.TODO() with gopts.ctx, so that cancellation 2017-12-03 07:22:14 -05:00
backend fixed restic-check does not retry backend.Test failures 2018-01-06 23:22:35 -05:00
cache cache: Simplify cache dir creation 2017-11-24 20:53:26 +01:00
checker Use Seal/Open everywhere 2017-11-01 10:30:40 +01:00
crypto crypto: Rework Seal/Open to use sliceForAppend 2017-11-01 10:30:40 +01:00
debug Run goimports 2017-07-23 14:21:03 +02:00
errors errors: Add "Fatal" prefix for Fatalf() 2018-01-06 23:27:47 +01:00
filter filter: document recursive wildcards 2017-09-04 14:38:48 -07:00
fs fs: Make HasPathPrefix work with relative paths 2018-01-05 17:38:52 +01:00
fuse fuse: Only reload list of snapshots once per minute 2017-12-28 13:18:27 +01:00
hashing Moves files 2017-07-23 14:19:13 +02:00
index Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
limiter Improve limiting HTTP based backends 2017-12-29 12:43:49 +01:00
list Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
migrations Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
mock Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
options errors: Add "Fatal" prefix for Fatalf() 2018-01-06 23:27:47 +01:00
pack Use Seal/Open everywhere 2017-11-01 10:30:40 +01:00
pipe small cleanup: 2017-10-25 12:03:55 -04:00
repository repository/index: Optimize index.Has() 2018-01-08 21:46:17 +01:00
restic restorer: Set directory mode as last step 2018-01-07 15:13:24 +01:00
test internal: check error before deferring file Close() 2017-08-13 19:28:13 +02:00
walk replace ad-hoc context.TODO() with gopts.ctx, so that cancellation 2017-12-03 07:22:14 -05:00
worker Run goimports 2017-07-23 14:21:03 +02:00