All checks were successful
DCO action / DCO (pull_request) Successful in 3m26s
Vulncheck / Vulncheck (pull_request) Successful in 3m41s
Pre-commit hooks / Pre-commit (pull_request) Successful in 4m22s
Tests and linters / Run gofumpt (pull_request) Successful in 4m34s
Build / Build Components (pull_request) Successful in 4m48s
Tests and linters / Staticcheck (pull_request) Successful in 4m45s
Tests and linters / Tests with -race (pull_request) Successful in 5m12s
Tests and linters / Lint (pull_request) Successful in 5m56s
Tests and linters / gopls check (pull_request) Successful in 6m34s
Tests and linters / Tests (pull_request) Successful in 8m21s
`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> |
||
---|---|---|
.. | ||
eacl.go | ||
epoch.go | ||
json.go | ||
token.go | ||
tracing.go | ||
verbose.go |