Massively use lazy imports!
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 264
- Avg merge
- 1d 13m
- Merged PRs (30d)
- 23
Description
import moabb takes quite some time to run because many dependancies are being imported and lots of code is being run.
Lazy imports will soon arrive with python 3.15, and it should help solve this issue!
We should use lazy imports whenever possible
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by measuring import moabb and reading the Python 3.15 lazy-import reference linked in the issue. Inventory the dependencies and work triggered during import, then agree on scope and a startup-time target before changing imports; the issue names no files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- performance
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100