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

feat: Optimized TokensTab #55

Merged
merged 7 commits into from
Jul 31, 2024
Merged

feat: Optimized TokensTab #55

merged 7 commits into from
Jul 31, 2024

Conversation

joeldavidw
Copy link
Owner

@joeldavidw joeldavidw commented Jul 31, 2024

Two optimisation to reduce CPUload:

  • Memoize tokens to ensure that the decryption process only occurs when necessary
  • Remove linear animation as it causes high CPU usage.

These changes reduce CPU load when idle with 100 tokens on TokensTab from 10% to 1%.

Related to #47

@joeldavidw joeldavidw marked this pull request as ready for review July 31, 2024 15:15
@joeldavidw joeldavidw merged commit 2046672 into main Jul 31, 2024
1 of 2 checks passed
@joeldavidw joeldavidw deleted the joeldavidw/optimise-tokenstab branch July 31, 2024 15:22
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.

1 participant