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

Refactor models to improve performance #1266

Merged
merged 1 commit into from
May 14, 2024

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Feb 29, 2024

Proposed Changes

  • Avoid many linear searchs
  • Cache version construction

The linear searches produce 100000s of dict gets per minute with ~25 devices

genexpr

- Avoid many linear searchs
- Cache version construction
@bdraco bdraco marked this pull request as ready for review February 29, 2024 04:38
@bdraco
Copy link
Contributor Author

bdraco commented Feb 29, 2024

Tested with single and multisegments.

I only have 2 wled devices to test with though, and this PR was the result of reviewing user performance data in beta

Copy link

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Mar 30, 2024
@frenck
Copy link
Owner

frenck commented Mar 30, 2024

Not stale

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Mar 31, 2024
Copy link

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Apr 30, 2024
@bdraco
Copy link
Contributor Author

bdraco commented Apr 30, 2024

keep-alive

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label May 1, 2024
@frenck frenck added enhancement Enhancement of the code, not introducing new features. labels May 14, 2024
Copy link
Owner

@frenck frenck left a comment

Choose a reason for hiding this comment

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

Thanks, @bdraco 👍

../Frenck

@frenck frenck merged commit 320e050 into frenck:main May 14, 2024
2 of 3 checks passed
@bdraco
Copy link
Contributor Author

bdraco commented May 14, 2024

Thanks

@bdraco bdraco deleted the improve_performance branch May 14, 2024 22:04
@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Enhancement of the code, not introducing new features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants