1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 00:07:25 +00:00
restic/internal/repository
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
..
testdata Moves files 2017-07-23 14:19:13 +02:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
index.go repostiory/index: Remove logging from Lookup function. 2018-01-23 22:28:38 -05:00
index_test.go repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05:00
key.go backend: Only return top-level files for most dirs 2017-12-14 19:14:16 +01:00
master_index.go repostiory/index: Remove logging from Lookup function. 2018-01-23 22:28:38 -05:00
master_index_test.go repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05:00
packer_manager.go replace ad-hoc context.TODO() with gopts.ctx, so that cancellation 2017-12-03 07:22:14 -05:00
packer_manager_test.go repo: Split packers for tree and data 2017-09-22 15:36:47 +02:00
parallel.go Ignore files with invalid name in the repo 2017-09-10 11:00:07 +02:00
parallel_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
pool.go Moves files 2017-07-23 14:19:13 +02:00
repack.go replace ad-hoc context.TODO() with gopts.ctx, so that cancellation 2017-12-03 07:22:14 -05:00
repack_test.go repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05:00
repository.go repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05:00
repository_test.go replace ad-hoc context.TODO() with gopts.ctx, so that cancellation 2017-12-03 07:22:14 -05:00
testing.go Rename KDFParams -> Params 2017-10-28 10:28:29 +02:00