googleapis / googleapis/google-cloud-python

Improve async client performance

Open
#16,388 1 comment 0 reactions 1 assignee Claimed by @daniel-sanche View on GitHub
priority: p2 type: feature request
Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
3d 4h
Merged PRs (30d)
122

Description

I threw together a quick benchmark, and was seeing ~4-5x slower async calls vs sync (with the network mocked out)

This mostly appears to be due to re-building the wrapped function on each call, rather than caching. I opened https://github.com/googleapis/gapic-generator-python/pull/1755 to address this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.