Skip to content

Add Pool.function_exists with caching#869

Merged
zshipko merged 3 commits intoextism:mainfrom
Nutomic:pool-function-exists
Jul 8, 2025
Merged

Add Pool.function_exists with caching#869
zshipko merged 3 commits intoextism:mainfrom
Nutomic:pool-function-exists

Conversation

@Nutomic
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

zshipko commented Jul 8, 2025

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

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