Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import sky only when required because it is slow #494

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

iurisilvio
Copy link
Contributor

@iurisilvio iurisilvio commented Jun 28, 2024

Description

The sky package is very slow to import and is required only in some cases.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested, please provide a testcase or example of how you tested the change?

You can paste these traces here to check the results. It is almost 30% of the import time.

trace-before.txt
trace-after.txt

@iurisilvio iurisilvio marked this pull request as ready for review June 28, 2024 08:42
@iurisilvio iurisilvio self-assigned this Jun 28, 2024
@iurisilvio iurisilvio merged commit e62992f into main Jun 28, 2024
50 checks passed
@iurisilvio iurisilvio deleted the iuri/sky-lazy-import branch June 28, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants