Skip to content

Speed up CLI startup - #182

Merged
chanshing merged 1 commit into
mainfrom
perf/fast-cli-help
Sep 24, 2026
Merged

chanshing merged 1 commit into
mainfrom
perf/fast-cli-help

Conversation

@chanshing

Copy link
Copy Markdown
Member

Summary

  • defer scientific and model dependencies until their execution paths need them
  • preserve runtime type-hint resolution and serialize lazy Numba dispatcher creation
  • add lightweight-import and concurrent-initialization regression coverage
  • remove redundant comments from the touched code

Validation

  • pytest -q — 282 passed, 4 skipped
  • stepcount -h — 0.04s and approximately 16 MB RSS

Defer processing dependencies until their execution paths need them so help and argument handling avoid loading the scientific and model stack. Keep annotations introspectable, serialize lazy JIT initialization, and cover the lightweight import contract with regression tests.
@chanshing
chanshing merged commit b207b1c into main Sep 24, 2026
15 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.

1 participant