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

Updated Quick Settings Performance #6243

Conversation

mitchelsellers
Copy link
Contributor

Given the reported issue in #6239, each time a module setting is updated the cache is cleared. The current code, was always updating the first load to be false, even if the first load value was already set to false.

This change utilizes the retreived setting value to ensure that we are ONLY updateing the module to flip the quick settings flag to false if it is currently set to true. This has a substantial impact to performance for modules using Quick Settings.

- Fixes dnnsoftware#6241

Given the reported issue in dnnsoftware#6239, each time a module setting is updated the cache is cleared.  The current code, was always updating the first load to be false, even if the first load value was already set to false.

This change utilizes the retreived setting value to ensure that we are ONLY updateing the module to flip the quick settings flag to false if it is currently set to true.  This has a substantial impact to performance for modules using Quick Settings.
@bdukes bdukes added this to the 9.13.7 milestone Dec 6, 2024
@thienvc
Copy link
Contributor

thienvc commented Dec 6, 2024

That's great, thank you

Copy link
Contributor

@donker donker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@donker donker merged commit 5348e66 into dnnsoftware:develop Dec 6, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Protect performance when a quick settings control exists
4 participants