return [][]NodeInfo. This is pretty big overhead since all resulting 2d array's items are copied elements from the input array. Moreover, the elements may repeat (afaik)
Describe the solution you'd like
provide methods returning [][]int - indices from the inital array
Describe alternatives you've considered
provide iterators, but it's better to start with indices cuz they are simpler imo
Is your feature request related to a problem? Please describe.
network map is an array of storage nodes' descriptors of type https://pkg.go.dev/github.com/nspcc-dev/neofs-sdk-go@v1.0.0-rc.11/netmap#NodeInfo, and
return
[][]NodeInfo
. This is pretty big overhead since all resulting 2d array's items are copied elements from the input array. Moreover, the elements may repeat (afaik)Describe the solution you'd like
provide methods returning
[][]int
- indices from the inital arrayDescribe alternatives you've considered
provide iterators, but it's better to start with indices cuz they are simpler imo
Additional context