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

Various performance optimizations #3

Open
JasonG-FR opened this issue Apr 11, 2021 · 1 comment
Open

Various performance optimizations #3

JasonG-FR opened this issue Apr 11, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@JasonG-FR
Copy link
Owner

  • Get the uptime when the app is launched and keep track of the time difference internally instead of polling it every 500ms.
  • Stop updating the values in the UI if they didn't change (status, percentage, health) every 500ms.
  • Try to read the values directly using Python open (everything is a file after all) instead of subprocess to check if there is a significant performance improvement.
  • Try to regroup functions in a module so they can be pre-compiled and check if it improves the start-up speed.
@JasonG-FR JasonG-FR added the enhancement New feature or request label Apr 11, 2021
@JasonG-FR JasonG-FR self-assigned this Apr 11, 2021
@JasonG-FR
Copy link
Owner Author

JasonG-FR commented Feb 3, 2022

b59aafa : Only checking battery health once at startup and added support for when the data isn't available (PineBookPro).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant