-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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
Create MQTTMatcher once per subscription instead of each message #40345
Create MQTTMatcher once per subscription instead of each message #40345
Conversation
I don't have access to my MQTT test setup at the moment so this shouldn't merge until someone can give it a try. |
@bdraco i can give it a try, anything special you want me to test? |
Thank you. 👍 👍 👍 There shouldn't be anything special. Hopefully it should be strait-forward and continuing matching what you would expect to match before the change. |
Co-authored-by: Paulus Schoutsen <[email protected]>
Co-authored-by: Paulus Schoutsen <[email protected]>
Confirmed working by @emontnemery |
@Spirituss Possibly because it speed up MQTT message handling, however something is very broken in the way zigbee2mqtt sends messages or there's a problem in your setup. |
Proposed change
Create MQTTMatcher once per subscription instead of each message
This should improve the performance for cases like #40292
Type of change
Example entry for
configuration.yaml
:# Example configuration.yaml
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: