1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-27 02:08:37 +00:00
restic/internal/index
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
..
index.go index: Optimize generatePackList 2023-01-14 20:41:07 +01:00
index_parallel.go restic: Unify code to load Index/Lock/Snapshot 2022-10-21 21:25:11 +02:00
index_parallel_test.go repository: split index into a separate package 2022-10-08 21:15:34 +02:00
index_test.go index: Optimize generatePackList 2023-01-14 20:41:07 +01:00
indexmap.go repository: split index into a separate package 2022-10-08 21:15:34 +02:00
indexmap_test.go repository: split index into a separate package 2022-10-08 21:15:34 +02:00
master_index.go repository: split index into a separate package 2022-10-08 21:15:34 +02:00
master_index_test.go repository: Remove empty cleanup functions in tests 2022-12-11 11:06:25 +01:00
testing.go repository: split index into a separate package 2022-10-08 21:15:34 +02:00