This repository was archived by the owner on Feb 24, 2026. It is now read-only.
feat: improve json to proto conversion by caching schema#2179
Merged
GaoleMeng merged 18 commits intogoogleapis:mainfrom Jul 13, 2023
Merged
feat: improve json to proto conversion by caching schema#2179GaoleMeng merged 18 commits intogoogleapis:mainfrom
GaoleMeng merged 18 commits intogoogleapis:mainfrom
Conversation
…eue. Since in write api server side we have total timeout of 2 minutes, it does not make sense to wait 15 minutes to determine whether we have met dead connection, let's reduce the timeout here
explicitly provided 2. fix location string matching for multiplexing
yirutang
reviewed
Jul 10, 2023
fb52950 to
403c6b3
Compare
yirutang
reviewed
Jul 11, 2023
a6f49fa to
561cdf1
Compare
ec44394 to
a856a68
Compare
yirutang
approved these changes
Jul 12, 2023
caching the schema. This will introduce approximately 2x improvement to append speed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
By caching schema across rows during conversion, we could save ~2x conversion speed for wide schema and when the row count is large
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> ☕️
If you write sample code, please follow the samples format.