-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use MarshalVT
/UnmarshalVT
instead of proto.Marshal
/proto.Unmarshal
.
#12525
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Signed-off-by: Arthur Schreiber <[email protected]>
Signed-off-by: Arthur Schreiber <[email protected]>
5ff0b64
to
9541563
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I don't think this is gonna fix the corruption but you're seeing in prod, @arthurschreiber, but it'll be a nice optimization.
I don't believe that either. But the generated code is much easier to read through and understand compared to the default protobuf implementation, so to me it seems like a win overall. 😄 |
…shal`. (vitessio#12525) * Use `MarshalVT` instead of `proto.Marshal`. Signed-off-by: Arthur Schreiber <[email protected]> * Use `UnmarshalVT` instead of `proto.Unmarshal`. Signed-off-by: Arthur Schreiber <[email protected]> --------- Signed-off-by: Arthur Schreiber <[email protected]>
…shal`. (vitessio#12525) * Use `MarshalVT` instead of `proto.Marshal`. Signed-off-by: Arthur Schreiber <[email protected]> * Use `UnmarshalVT` instead of `proto.Unmarshal`. Signed-off-by: Arthur Schreiber <[email protected]> --------- Signed-off-by: Arthur Schreiber <[email protected]>
Description
Use the more efficient
MarshalVT
/UnmarshalVT
functions instead ofproto.Marshal
/proto.Unmarshal
.The only places I didn't switch over are
go/vt/servenv/grpc_codec.go
(because that is used by the grpc communication foretcd-client
) andgo/vt/topo/decode.go
(which I can switch over if anyone cares about that).Related Issue(s)
N/A
Checklist
Deployment Notes