restic/internal
greatroar 99755c634b index: Optimize generatePackList
name                 old time/op    new time/op    delta
EncodeIndex/100-8      1.56ms ± 2%    1.48ms ± 3%   -5.37%  (p=0.000 n=10+10)
EncodeIndex/1000-8     14.5ms ± 2%    13.1ms ± 2%   -9.49%  (p=0.000 n=9+10)
EncodeIndex/10000-8     120ms ± 2%     116ms ± 2%   -3.58%  (p=0.000 n=10+10)

name                 old alloc/op   new alloc/op   delta
EncodeIndex/100-8       306kB ± 1%     275kB ± 1%  -10.28%  (p=0.000 n=10+10)
EncodeIndex/1000-8     3.69MB ±11%    2.88MB ± 5%  -22.07%  (p=0.000 n=10+9)
EncodeIndex/10000-8    35.9MB ±11%    31.9MB ±10%  -11.13%  (p=0.005 n=10+10)

name                 old allocs/op  new allocs/op  delta
EncodeIndex/100-8       3.39k ± 0%     2.39k ± 0%  -29.61%  (p=0.000 n=10+10)
EncodeIndex/1000-8      32.6k ± 0%     22.9k ± 0%  -29.63%  (p=0.000 n=10+9)
EncodeIndex/10000-8      326k ± 0%      229k ± 0%  -29.71%  (p=0.000 n=10+10)

The bulk of the allocation rate improvement comes from just removing the
debug.Log calls: every one of those copied a restic.ID to the heap.
2023-01-14 20:41:07 +01:00
..
archiver repository: Remove empty cleanup functions in tests 2022-12-11 11:06:25 +01:00
backend test: Use testing.T.Cleanup to remove tempdirs 2022-12-09 14:23:55 +01:00
bloblru bloblru: Upgrade to hashicorp/golang-lru/v2 2022-11-27 17:18:13 +01:00
cache test: Use testing.T.Cleanup to remove tempdirs 2022-12-09 14:23:55 +01:00
checker repository: Remove empty cleanup functions in tests 2022-12-11 11:06:25 +01:00
crypto crypto: move crypto buffer helpers 2022-07-17 13:42:23 +02:00
debug Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
dump repository: Remove empty cleanup functions in tests 2022-12-11 11:06:25 +01:00
errors errors: Drop WithMessage 2022-10-14 14:06:47 +02:00
filter remove no longer necessary conditional compiles 2022-11-27 13:18:44 +01:00
fs test: Use testing.T.Cleanup to remove tempdirs 2022-12-09 14:23:55 +01:00
fuse repository: Remove empty cleanup functions in tests 2022-12-11 11:06:25 +01:00
hashing Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
index index: Optimize generatePackList 2023-01-14 20:41:07 +01:00
migrations repository: Remove empty cleanup functions in tests 2022-12-11 11:06:25 +01:00
options backend, options: Prefer strings.Cut to SplitN 2022-12-02 19:19:14 +01:00
pack repository: optimize MasterIndex.Each 2022-09-24 12:21:59 +02:00
repository repository: Remove empty cleanup functions in tests 2022-12-11 11:06:25 +01:00
restic repository: Remove empty cleanup functions in tests 2022-12-11 11:06:25 +01:00
restorer repository: Remove empty cleanup functions in tests 2022-12-11 11:06:25 +01:00
selfupdate Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
test test: Use testing.T.Cleanup to remove tempdirs 2022-12-09 14:23:55 +01:00
textfile Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
ui Merge pull request #3993 from MichaelEischer/backup-json-full-snapshot-id 2022-11-12 20:42:35 +01:00
walker rewrite: Fail if a tree contains an unknown field 2022-11-12 19:55:22 +01:00