restic/internal/restic
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 Support time ranges expressed in hours in snapshot retention policies 2018-11-26 14:27:42 +01:00
backend.go
backend_find.go Prevent "slice bounds out of range" error if prefix is longer than snapshot IDs. 2019-04-16 20:26:20 -07:00
backend_find_test.go Prevent "slice bounds out of range" error if prefix is longer than snapshot IDs. 2019-04-16 20:26:20 -07:00
blob.go
blob_set.go
blob_test.go
buffer.go
cache.go
config.go
config_test.go internal/restic: fix dropped test error 2020-02-12 13:32:45 -08:00
doc.go
duration.go Extend custom Duration granularity to hours and add tests 2018-11-14 17:27:02 +01:00
duration_test.go Extend custom Duration granularity to hours and add tests 2018-11-14 17:27:02 +01:00
file.go
file_test.go
find.go
find_test.go
hardlinks_index.go
hardlinks_index_test.go
id.go restic: Make JSON unmarshal for ID more efficient 2019-04-13 13:38:39 +02:00
id_int_test.go
id_test.go restic: Make JSON unmarshal for ID more efficient 2019-04-13 13:38:39 +02:00
ids.go
ids_test.go
idset.go
idset_test.go
lock.go Make all signal.Notify channels buffered 2020-03-12 20:59:39 +01:00
lock_test.go Update Lock.Time in lock.Refresh() 2019-09-04 11:38:35 -07:00
lock_unix.go
lock_windows.go
node.go Centralize buffer allocation and size checking in Repository.LoadBlob 2020-04-23 10:04:20 +02:00
node_darwin.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
node_freebsd.go Fix build on FreeBSD for Go < 1.12 2019-03-16 20:52:37 +01:00
node_freebsd_go111.go Fix build on FreeBSD for Go < 1.12 2019-03-16 20:52:37 +01:00
node_linux.go internal/restic: close os.File after checking for error 2020-03-05 16:22:46 -08:00
node_netbsd.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
node_openbsd.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
node_solaris.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
node_test.go node: Make sure year of all timestamps is valid 2019-04-24 16:39:36 +02:00
node_unix.go
node_unix_test.go Fix test 2018-07-14 11:51:34 +02:00
node_windows.go windows: Use LastWriteTime for ctime and mtime 2019-05-05 14:02:11 +02:00
node_xattr.go Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
progress.go
progress_unix.go Make all signal.Notify channels buffered 2020-03-12 20:59:39 +01:00
progress_unix_with_siginfo.go Make all signal.Notify channels buffered 2020-03-12 20:59:39 +01:00
readerat.go
repository.go Centralize buffer allocation and size checking in Repository.LoadBlob 2020-04-23 10:04:20 +02:00
rewind_reader.go
rewind_reader_test.go
snapshot.go Support specifying multiple host flags for various commands 2020-02-26 22:17:59 +01:00
snapshot_find.go Support specifying multiple host flags for various commands 2020-02-26 22:17:59 +01:00
snapshot_group.go Accept both singular and plural for --group-by (#2330) 2019-11-20 19:25:48 +01:00
snapshot_policy.go Support time ranges expressed in hours in snapshot retention policies 2018-11-26 14:27:42 +01:00
snapshot_policy_test.go Support time ranges expressed in hours in snapshot retention policies 2018-11-26 14:27:42 +01:00
snapshot_test.go
tag_list.go remove unused code 2019-07-01 00:24:45 +03:00
testing.go Remove unused argument to restic.fakeFile 2020-04-18 17:40:13 +02:00
testing_test.go
tree.go
tree_test.go