googleapis / googleapis/python-aiplatform

Optimize import loading time

Open
#6,155 0 comments 0 reactions 0 assignees View on GitHub
api: vertex-ai
Dominant language
Python
Stars
905
Forks
465
Avg merge
1d 13h
Merged PRs (30d)
44

Description

Please consider optimizing the imports that this library performs. On my system a single `import vertexai` takes about 1 second.

The top 3 modules that take the most time can be computed with `-X importtime`
```
$ python -X importtime -m vertexai &> x
$ sort -k 3 -n x | tail -n 3
import time: 7300 | 7300 | google.cloud.aiplatform_v1beta1.types.evaluation_service
import time: 53394 | 53394 | google.cloud.aiplatform_v1beta1.services.pipeline_service.transports.rest_asyncio
import time: 244048 | 259512 | google.api_core
```
Where the numbers are measured in microseconds (us).

Version: google-cloud-aiplatform v1.128.0

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.