8000 fix: optimized protobuf access for performance by craiglabenz · Pull Request #155 · googleapis/python-datastore · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@craiglabenz
Copy link
Contributor
@craiglabenz craiglabenz commented Apr 16, 2021

More efficiently uses proto-plus wrappers, as well as inner protobuf attribute access, to greatly reduce the performance costs seen in version 2.0.0 (which stemmed from the introduction of proto-plus).

The size of the performance improvement scales with the number of attributes on each Entity, but in general, speeds once again closely approximate those from 1.15.

Fixes #145
Fixes #150

@craiglabenz craiglabenz requested review from a team and crwilcox April 16, 2021 16:29
@product-auto-label product-auto-label bot added the api: datastore Issues related to the googleapis/python-datastore API. label Apr 16, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 16, 2021
@craiglabenz craiglabenz requested a review from tseaver April 19, 2021 21:27
@craiglabenz
Copy link
Contributor Author

There are a few other untested code blocks, but I can't see the CI results for past PRs to confirm whether they were pre-existing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: datastore Issues related to the googleapis/python-datastore API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Too slow query fetch Batches in >=2.0.0 are significantly slower

2 participants

0