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

Restyle [Python] Process attribute cache updates in Python thread #35558

Conversation

restyled-io[bot]
Copy link
Contributor

@restyled-io restyled-io bot commented Sep 12, 2024

Automated style fixes for #35557, created by Restyled.

The following restylers made fixes:

To incorporate these changes, merge this Pull Request into the original. We
recommend using the Squash or Rebase strategies.

NOTE: As work continues on the original Pull Request, this process will
re-run and update (force-push) this Pull Request with updated style fixes as
necessary. If the style is fixed manually at any point (i.e. this process finds
no fixes to make), this Pull Request will be closed automatically.

Sorry if this was unexpected. To disable it, see our documentation.

agners and others added 2 commits September 12, 2024 18:54
Instead of processing the attribute update in the SDK thread, process
them on request in the Python thread. This avoids acks being sent back
too late to the device  after the last DataReport if there are many
attribute updates sent at once.

Currently still the same data model and processing is done. There is
certainly also room for optimization to make this more efficient.
@restyled-io restyled-io bot added the restyled label Sep 12, 2024
Copy link

semanticdiff-com bot commented Sep 12, 2024

Review changes with SemanticDiff.

Analyzed 1 of 1 files.

1 files do not contain logic changes.

Filename Status
✔️ src/controller/python/chip/ChipDeviceCtrl.py No logic changes found

@agners agners force-pushed the avoid-processing-attribute-cache-update-on-sdk-thread branch from 447e79a to d66652c Compare September 12, 2024 17:07
@restyled-io restyled-io bot closed this Sep 12, 2024
@restyled-io restyled-io bot deleted the restyled/avoid-processing-attribute-cache-update-on-sdk-thread branch September 12, 2024 17:08
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.

2 participants