forked from TrueCloudLab/frostfs-node
Evgenii Stratonikov
15102e6dfd
`slices.SortFunc` doesn't use reflection and is a bit faster. I have done some micro-benchmarks for `[]NodeInfo`: ``` $ benchstat -col "/func" out goos: linux goarch: amd64 pkg: git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/pilorama cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz │ sort.Slice │ slices.SortFunc │ │ sec/op │ sec/op vs base │ Sort-8 2.130µ ± 2% 1.253µ ± 2% -41.20% (p=0.000 n=10) ``` Haven't included them, though, as they I don't see them being used a lot. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com> |
||
---|---|---|
.. | ||
batch.go | ||
bench_test.go | ||
boltdb.go | ||
forest.go | ||
forest_test.go | ||
generic_test.go | ||
heap.go | ||
info.go | ||
inmemory.go | ||
interface.go | ||
meta.go | ||
meta_test.go | ||
metrics.go | ||
mode_test.go | ||
multinode.go | ||
option.go | ||
split_test.go | ||
types.go | ||
util.go | ||
util_test.go |