Skip to content

[NOT READY] [v2] Lazily initialize built-in plugins to reduce command execution time#10363

Open
aemous wants to merge 25 commits into
v2from
lazy-plugin-initialization
Open

[NOT READY] [v2] Lazily initialize built-in plugins to reduce command execution time#10363
aemous wants to merge 25 commits into
v2from
lazy-plugin-initialization

Conversation

@aemous
Copy link
Copy Markdown
Contributor

@aemous aemous commented May 29, 2026

Issue #, if available:

Notes:

Description of changes:

  • Switch from eagerly importing and initializing all built-in plugins eagerly to lazy-loading them when relevant events are emitted, command(s) are invoked, or help docs are generated.

Description of tests:

  • Successfully ran pre-production build workflow (see Build Internal GitHub Action).

Benchmarking data:

  • TODO describe benchmarking method and results, with and without this patch.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

aemous and others added 25 commits May 11, 2026 16:30
[v2] Implement LazyCommand for deferring modules until their commands are invoked, and make PrefixTrie public
[v2] Implement event handlers registry for built-in plugins
@aemous aemous requested a review from a team May 29, 2026 20:11
@aemous aemous requested a review from a team as a code owner May 29, 2026 20:12
@aemous aemous added v2 performance This PR or issue is related to performance. labels May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance This PR or issue is related to performance. v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant