mirror of
https://github.com/nspcc-dev/neofs-sdk-go.git
synced 2026-03-01 04:29:18 +00:00
netmap: Provide placement methods returning indices instead of copied node descriptors #213
Labels
No labels
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U2
U2
U3
U4
blocked
bug
client
config
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
pool
question
security
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-sdk-go#213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cthulhu-rider on GitHub (Dec 20, 2023).
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
@roman-khimov commented on GitHub (Dec 20, 2023):
[][]*NodeInfois an option too,[][]intwon't be a pleasure to use.