restic/internal
Matthew Dawson 3789e55e20
repostiory/index: Remove logging from Lookup function.
The logging in these functions double the time they take to execute.
However, it is only really useful on failures, which are better
reported by the calling functions.

benchmark                                            old ns/op     new ns/op     delta
BenchmarkMasterIndexLookupSingleIndex-6              897           395           -55.96%
BenchmarkMasterIndexLookupMultipleIndex-6            2001          1090          -45.53%
BenchmarkMasterIndexLookupSingleIndexUnknown-6       492           215           -56.30%
BenchmarkMasterIndexLookupMultipleIndexUnknown-6     1649          912           -44.69%

benchmark                                            old allocs     new allocs     delta
BenchmarkMasterIndexLookupSingleIndex-6              9              1              -88.89%
BenchmarkMasterIndexLookupMultipleIndex-6            19             1              -94.74%
BenchmarkMasterIndexLookupSingleIndexUnknown-6       6              0              -100.00%
BenchmarkMasterIndexLookupMultipleIndexUnknown-6     16             0              -100.00%

benchmark                                            old bytes     new bytes     delta
BenchmarkMasterIndexLookupSingleIndex-6              160           96            -40.00%
BenchmarkMasterIndexLookupMultipleIndex-6            240           96            -60.00%
BenchmarkMasterIndexLookupSingleIndexUnknown-6       48            0             -100.00%
BenchmarkMasterIndexLookupMultipleIndexUnknown-6     128           0             -100.00%
2018-01-23 22:28:38 -05:00
..
archiver archiver/archiver: Use Index.Has() instead of Index.Lookup() in isKnownBlob 2018-01-23 22:26:10 -05:00
backend rest: Add test for external server 2018-01-20 10:25:47 +01:00
cache cache: Simplify cache dir creation 2017-11-24 20:53:26 +01:00
checker checker: Optimize checker.Packs() 2018-01-18 20:50:39 -05: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 repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05: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 repostiory/index: Remove logging from Lookup function. 2018-01-23 22:28:38 -05:00
restic repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05: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