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

Allow widgets to report fruitless invocations #76

Open
dmbaturin opened this issue Oct 30, 2024 · 0 comments
Open

Allow widgets to report fruitless invocations #76

dmbaturin opened this issue Oct 30, 2024 · 0 comments

Comments

@dmbaturin
Copy link
Collaborator

For performance reports mentioned in #75, it would be nice to know how many times widgets were executed on pages where they didnt't actually have any work to do, so that those pages could be safely excluded.

Trying to track that by diffing element trees is likely to create performance problems. However, built-in widgets can report that, and plugins can opt into reporting fruitless invocations.

A plugin may be able to set a global, like:

fruitless_invocation = 1

then those counts would be included in performance reports.

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

No branches or pull requests

1 participant