Skip to content
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

perf(grpc): use optimized code from vtprotobuf #3019

Merged
merged 3 commits into from
May 17, 2023

Conversation

maxbrunet
Copy link
Member

The optimized code generated by vtprotobuf had actually been left unused until now:
planetscale/vtprotobuf@main#using-the-optimized-code-with-rpc-frameworks

Since it uses the global state, I load it as earlier as possible before any gRPC client or server start, and do not do it under pkg/ as dependents may use other gRPC clients/servers without the optimized VT code.

@maxbrunet maxbrunet requested review from a team as code owners April 23, 2023 17:37
@maxbrunet maxbrunet changed the title fix: use optimized code from vtprotobuf perf(grpc): use optimized code from vtprotobuf Apr 23, 2023
Copy link
Contributor

@javierhonduco javierhonduco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants