storj/satellite/repair
Michal Niewrzal 0eaf43120b satellite/repair/checker: optimize processing, part 3
ClassifySegmentPieces uses custom set implementation instead map.

Side note, for custom set implementation I also checked int8 bit set but
it didn't give better performance so I used simpler implementation.

Benchmark results (compared against part 2 optimization change):
name                                       old time/op    new time/op    delta
RemoteSegment/healthy_segment-8    21.7µs ± 8%    15.4µs ±16%  -29.38%  (p=0.008 n=5+5)

name                                       old alloc/op   new alloc/op   delta
RemoteSegment/healthy_segment-8    7.41kB ± 0%    1.87kB ± 0%  -74.83%  (p=0.000 n=5+4)

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

Change-Id: I21feca9ec6ac0a2558ac5ce8894451c54f69e52d
2023-10-16 12:06:16 +00:00
..
checker satellite/repair/checker: optimize processing, part 3 2023-10-16 12:06:16 +00:00
queue satellite/satellitedb: repairqueue.Select uses placement constraints 2023-09-25 10:14:25 +00:00
repairer satellite/repair/checker: optimize processing, part 3 2023-10-16 12:06:16 +00:00
classification_test.go satellite/repair/checker: optimize processing, part 3 2023-10-16 12:06:16 +00:00
classification.go satellite/repair/checker: optimize processing, part 3 2023-10-16 12:06:16 +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