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

Lazy Loading for Submodules #1050

Open
Beforerr opened this issue Nov 1, 2024 · 1 comment
Open

Lazy Loading for Submodules #1050

Beforerr opened this issue Nov 1, 2024 · 1 comment

Comments

@Beforerr
Copy link
Contributor

Beforerr commented Nov 1, 2024

Right now, pyspedas loads all submodules which comes with import cost. This could be avoided using lazy loading mechanism.

See references https://scientific-python.org/specs/spec-0001/

@Beforerr
Copy link
Contributor Author

Beforerr commented Nov 1, 2024

image

This is a profile of import time. pytplot, spd_part_products, cda_gui and wavelet modules take the most of time.

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

No branches or pull requests

1 participant