Apply nested structure slice optimization in stable marhalers #69

Open
opened 2025-12-28 18:12:26 +00:00 by sami · 0 comments
Owner

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 for NestedStructureMarshal is the lack of a proper signature for []Type where Type is 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

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 for `NestedStructureMarshal` is the lack of a proper signature for `[]Type` where `Type` is 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_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-api-go#69
No description provided.