restic/internal/repository
greatroar be5a0ff59f Centralize buffer allocation and size checking in Repository.LoadBlob
Benchmark results for internal/repository:

name              old time/op    new time/op    delta
LoadTree-8           479µs ± 2%     478µs ± 1%   ~     (p=0.780 n=10+9)
LoadBlob-8          11.6ms ± 2%    11.6ms ± 1%   ~     (p=0.631 n=10+10)
LoadAndDecrypt-8    13.2ms ± 2%    13.3ms ± 3%   ~     (p=0.631 n=10+10)

name              old alloc/op   new alloc/op   delta
LoadTree-8          41.2kB ± 0%    41.2kB ± 0%   ~     (all equal)
LoadBlob-8          2.28kB ± 0%    2.28kB ± 0%   ~     (all equal)
LoadAndDecrypt-8    2.10MB ± 0%    2.10MB ± 0%   ~     (all equal)

name              old allocs/op  new allocs/op  delta
LoadTree-8             652 ± 0%       652 ± 0%   ~     (all equal)
LoadBlob-8            24.0 ± 0%      24.0 ± 0%   ~     (all equal)
LoadAndDecrypt-8      30.0 ± 0%      30.0 ± 0%   ~     (all equal)

name              old speed      new speed      delta
LoadBlob-8        86.2MB/s ± 2%  86.4MB/s ± 1%   ~     (p=0.594 n=10+10)
LoadAndDecrypt-8  75.7MB/s ± 2%  75.4MB/s ± 3%   ~     (p=0.617 n=10+10)
2020-04-23 10:04:20 +02: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 Reuse buffer in worker functions 2019-04-13 13:38:39 +02:00
index_test.go internal/repository: fix dropped test error 2020-02-12 13:33:54 -08:00
key.go Allow multiple retries for interactive password input 2019-06-13 20:11:02 +08:00
master_index.go debug: Remove manual Str() call Log() 2018-01-25 20:49:41 +01:00
master_index_test.go repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05:00
packer_manager.go backend: Improve Save() 2018-03-03 15:49:44 +01:00
packer_manager_test.go Improve PackerManager benchmark 2020-03-05 22:30:03 +01:00
repack.go DownloadAndHash: Check error returned by Load() 2018-10-28 21:28:56 +01:00
repack_test.go Remove restic.RandReader 2020-03-09 10:00:28 +01:00
repository.go Centralize buffer allocation and size checking in Repository.LoadBlob 2020-04-23 10:04:20 +02:00
repository_test.go Centralize buffer allocation and size checking in Repository.LoadBlob 2020-04-23 10:04:20 +02:00
testing.go Remove remnant of Go 1.9 compatibility code from tests 2020-02-26 22:23:38 +01:00
worker_group.go simpler error return 2020-01-27 18:41:46 +03:00