Move to a custom protobuf code generator #78
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-api-go#78
Loading…
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?
The following migration plan is proposed:
MessageData
methods for checking signature in the frostfs-node.[]*T
with[]T
and do not use pointers for message fields (we might need some settings here).ToGRPCMessage().EmitProtobuf
). May be done in parallel with (3).object/
etc. aliases toobject/grpc/
. Most conversion functions become a no-op.Addresses #40
#66 becomes trivial, we might easily add accessor methods with easyproto.
#39 becomes somewhat irrelevant, because we no longer need to marshal the message multiple times.
Transition to custom codegento Move to a custom protobuf code generatorIf we use bytes pool in grpc server, zero-alloc unmarshal is impossible.