frostfs-node/cmd/frostfs-cli/internal/client
Evgenii Stratonikov 15102e6dfd [#1471] Replace sort.Slice in some places
`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>
2024-11-06 08:07:32 +00:00
..
client.go [#1471] Replace sort.Slice in some places 2024-11-06 08:07:32 +00:00
doc.go [#1] Fix project name in comments here and there 2023-02-06 17:41:14 +03:00
prm.go Rename package name 2023-03-07 16:38:26 +03:00
sdk.go [#1441] cli: Use grpc.WaitForReady while initializing SDK client 2024-10-23 11:45:44 +00:00