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

perf: refactor PluginManager #27

Merged
merged 1 commit into from
May 8, 2024
Merged

perf: refactor PluginManager #27

merged 1 commit into from
May 8, 2024

Conversation

theogravity
Copy link
Owner

@theogravity theogravity commented May 8, 2024

Refactors PluginManager to no longer iterate through all plugins when calling a specific callback handler.

  • Creates an id -> plugin map
  • Creates indexes for each callback handler type and stores the id of the plugin if it is available for use
  • The respective run* commands will only execute plugins that have the handler defined

Pending:

  • Adds two new plugin methods onMetadataCalled, onErrorCalled that does not have a full integration or tests yet.

Copy link

changeset-bot bot commented May 8, 2024

🦋 Changeset detected

Latest commit: d6319cf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
loglayer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@theogravity theogravity merged commit a6fb176 into master May 8, 2024
2 checks passed
@theogravity theogravity deleted the plugin-refactor branch May 8, 2024 22:20
@github-actions github-actions bot mentioned this pull request May 8, 2024
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