Skip to content

Add Pool.function_exists with caching #869

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

Merged
merged 3 commits into from
Jul 8, 2025

Conversation

Nutomic
Copy link
Contributor

@Nutomic Nutomic commented Jul 4, 2025

This wrapper caches the result of plugin.function_exists, to avoid having to load a plugin from the pool every single time just to find out if the given function exists. It can improve performance if there are many plugin hooks without corresponding plugin functions.

@Nutomic Nutomic requested a review from zshipko as a code owner July 4, 2025 08:09
@Nutomic Nutomic force-pushed the pool-function-exists branch from d6ac606 to 7cc65a4 Compare July 4, 2025 08:11
@zshipko
Copy link
Contributor

zshipko commented Jul 8, 2025

Looks like there are some unrelated clippy errors, I will take a look at fixing those today.

@zshipko
Copy link
Contributor

zshipko commented Jul 8, 2025

Just pushed a commit for the clippy changes, I will merge once CI passes.

@zshipko zshipko merged commit 9e5729b into extism:main Jul 8, 2025
5 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.

2 participants