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

Use cached sizes when serializing #1028

Merged
merged 2 commits into from
Jan 30, 2023
Merged

Use cached sizes when serializing #1028

merged 2 commits into from
Jan 30, 2023

Conversation

mlw
Copy link
Member

@mlw mlw commented Jan 30, 2023

SerializeToArray was doing an extra call to ByteSizeLong, but we already had calculated this size when constructing the vector.

@mlw mlw requested a review from a team as a code owner January 30, 2023 20:22
@mlw mlw merged commit 3acf3c1 into google:main Jan 30, 2023
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.

None yet

2 participants