- Notifications
You must be signed in to change notification settings - Fork95
Open
Description
Importing google.api_core is very slow. In some of our benchmark, when loading as part of our app, it can take over 10s.
Environment details
- OS type and version: Windows 11 Enterprise, build 26100.7171
- Python version: Python 3.12.7
- pip version: pip 25.2
google-api-coreversion:pip show google-api-core
Name: google-api-core
Version: 2.28.1
Summary: Google API client core library
Home-page:
Author:
Author-email: Google LLCgoogleapis-packages@google.com
License: Apache 2.0
Location: C:\Projects\xxx\venv\Lib\site-packages
Requires: google-auth, googleapis-common-protos, proto-plus, protobuf, requests
Required-by: google-api-python-client, google-cloud-core, google-cloud-modelarmor, google-cloud-vision, langchain-google-community
Steps to reproduce
- Run:
python -X importtime -c"from google.api_core import __version__"- analyze output, for example usinghttps://kmichel.github.io/python-importtime-graph/.
I attach the output in my case:importtime.txt. This is the visualization:

Code example
python -X importtime -c"from google.api_core import __version__"Metadata
Metadata
Assignees
Labels
No labels