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

MAINT: Use lazy_loader for lazy loading of submodules #595

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

MridulS
Copy link
Member

@MridulS MridulS commented Jan 27, 2025

This adds lazy loading to scippneutron, we should ideally also add this to plopp to propogate it across the ess ecosystem. Tox will not be happy here as I haven't run tox -e deps locally (libpymcr doesn't do ARM wheels).

Locally I can see a 100x speedup in import time (600ms vs 6ms) with cached modules in an env, in a freshly installed env it's ~10seconds for scippneutron.

This should fix #594

@SimonHeybrock SimonHeybrock changed the base branch from main to lazy January 28, 2025 05:45
@SimonHeybrock
Copy link
Member

LGTM. Merging into branch lazy so I can more easily update the deps (since you are working with a fork).

@SimonHeybrock SimonHeybrock merged commit 79be73f into scipp:lazy Jan 28, 2025
4 of 5 checks passed
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.

Slow import times
2 participants