mirror of
https://github.com/nspcc-dev/neofs-api-go.git
synced 2026-03-01 04:28:56 +00:00
Apply nested structure slice optimization in stable marhalers #69
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 @alexvanin on GitHub (Apr 6, 2022).
It cannot be generalized, because the implementation (
BytesMarshal) uses knowledge about the type (ObjectID). The main problem with generalization forNestedStructureMarshalis the lack of a proper signature for[]TypewhereTypeis generic.We can apply similar optimization for other lists too (we have about 3-4 of them), this list caught my eye first.
Originally posted by @fyrchik in https://github.com/nspcc-dev/neofs-api-go/pull/389#discussion_r844058684