We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Proto.Clone is too expensive:
// origin copyLeader := proto.Clone(leader).(*metapb.Peer) // new b, _ := leader.Marshal() copyLeader := &metapb.Peer{} copyLeader.Unmarshal(b)
before :
after
The text was updated successfully, but these errors were encountered:
optimization: using mashal to replace proto clone (#5480)
1e1732c
close #5477 Signed-off-by: bufferflies <[email protected]>
bufferflies
Successfully merging a pull request may close this issue.
Development Task
Proto.Clone is too expensive:
before :
after
The text was updated successfully, but these errors were encountered: