- Notifications
You must be signed in to change notification settings - Fork451
chore(Spanner): Make createTransactionSelector faster#7342
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
saranshdhingra commentedMay 30, 2024
Seems like protobuf's For now, closing this PR. |
Uh oh!
There was an error while loading.Please reload this page.
bshaffer commentedJun 13, 2024
I have made sure that the JSON string uses |
This PR simply replaces the use of
decodeMessagefrom the Serializer and uses themergeFromJsonStringand the protobuf class's setter method.The metrics on average are:
Using decodeMessage
When
createTransactionSelectoris called the first time: 900 us(micros)When
createTransactionSelectoris called the second time: 300 us (This is low because the Serializer caches a lot of things like proto descriptors etc).Using mergeFromJsonString
When
createTransactionSelectoris called the first time: 200 us(micros)When
createTransactionSelectoris called the second time: 150 us