Use MarshalVT/UnmarshalVT instead of proto.Marshal/proto.Unmarshal.#12525
Merged
vmg merged 2 commits intovitessio:mainfrom Mar 7, 2023
Merged
Use MarshalVT/UnmarshalVT instead of proto.Marshal/proto.Unmarshal.#12525vmg merged 2 commits intovitessio:mainfrom
MarshalVT/UnmarshalVT instead of proto.Marshal/proto.Unmarshal.#12525vmg merged 2 commits intovitessio:mainfrom
Conversation
Contributor
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 <arthurschreiber@github.com>
Signed-off-by: Arthur Schreiber <arthurschreiber@github.com>
5ff0b64 to
9541563
Compare
vmg
approved these changes
Mar 6, 2023
Collaborator
vmg
left a comment
There was a problem hiding this comment.
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.
Member
Author
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. 😄 |
frouioui
approved these changes
Mar 7, 2023
4 tasks
arthurschreiber
added a commit
to github/vitess-gh
that referenced
this pull request
Apr 11, 2024
…shal`. (vitessio#12525) * Use `MarshalVT` instead of `proto.Marshal`. Signed-off-by: Arthur Schreiber <arthurschreiber@github.com> * Use `UnmarshalVT` instead of `proto.Unmarshal`. Signed-off-by: Arthur Schreiber <arthurschreiber@github.com> --------- Signed-off-by: Arthur Schreiber <arthurschreiber@github.com>
arthurschreiber
added a commit
to github/vitess-gh
that referenced
this pull request
Apr 11, 2024
…shal`. (vitessio#12525) * Use `MarshalVT` instead of `proto.Marshal`. Signed-off-by: Arthur Schreiber <arthurschreiber@github.com> * Use `UnmarshalVT` instead of `proto.Unmarshal`. Signed-off-by: Arthur Schreiber <arthurschreiber@github.com> --------- Signed-off-by: Arthur Schreiber <arthurschreiber@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Use the more efficient
MarshalVT/UnmarshalVTfunctions 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