e3e303754b
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 |
||
---|---|---|
.. | ||
checker | ||
queue | ||
repairer | ||
classification_test.go | ||
classification.go | ||
clumping_test.go | ||
clumping.go | ||
priority_test.go | ||
priority.go | ||
repair_test.go | ||
repair.go |