storj/satellite/repair
Michal Niewrzal e3e303754b satellite/repair/checker: optimize processing, part 2
Optimizing collecting monkit metrics:
* initialize metrics once at the begining
* avoid using string in map for getting stats structs per redundancy

Benchmark results (compared against part 1 optimization change):
name                                       old time/op    new time/op    delta
RemoteSegment/Cockroach/healthy_segment-8    31.4µs ± 6%    21.7µs ± 8%  -30.73%  (p=0.008 n=5+5)

name                                       old alloc/op   new alloc/op   delta
RemoteSegment/healthy_segment-8    10.2kB ± 0%     7.4kB ± 0%  -27.03%  (p=0.008 n=5+5)

name                                       old allocs/op  new allocs/op  delta
RemoteSegment/healthy_segment-8       250 ± 0%       150 ± 0%  -40.00%  (p=0.008 n=5+5)

Change-Id: Ie09476eb469a4d6c09e52550c8ba92b3b4b34271
2023-10-12 10:02:53 +02:00
..
checker satellite/repair/checker: optimize processing, part 2 2023-10-12 10:02:53 +02:00
queue satellite/satellitedb: repairqueue.Select uses placement constraints 2023-09-25 10:14:25 +00:00
repairer satellite/repair/checker: optimize processing, part 1 2023-10-11 15:50:29 +00:00
classification_test.go satellite/repair/checker: optimize processing, part 1 2023-10-11 15:50:29 +00:00
classification.go satellite/repair/checker: optimize processing, part 1 2023-10-11 15:50:29 +00:00
clumping_test.go satellite/repair: repair pieces on the same last_net 2023-04-06 17:34:25 +00:00
clumping.go satellite/repair: repair pieces on the same last_net 2023-04-06 17:34:25 +00:00
priority_test.go satellite/repair: test inmemory/disk difference only once 2022-03-29 14:08:13 +03:00
priority.go all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
repair_test.go satellite/repair: unify repair logic 2023-09-25 09:42:08 -05:00
repair.go satellite/repair: move test files (#2649) 2019-07-28 12:15:34 +03:00