NeuroTechX / NeuroTechX/moabb

Massively use lazy imports!

Open
#1,153 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.