Skip to content

feat: reduce overhead to send responses#1135

Merged
bdraco merged 3 commits into
masterfrom
response
Apr 1, 2023
Merged

feat: reduce overhead to send responses#1135
bdraco merged 3 commits into
masterfrom
response

Conversation

@bdraco
Copy link
Copy Markdown
Member

@bdraco bdraco commented Mar 31, 2023

There are still cases were we cannot answer questions fast enough to keep up with systems (mainly HomeKit) that require a response within a time period to prevent a device from going offline.

This change saves a bit of time by pre-calculating most of the work needed to work out how to send.

We need to optimize the handlers a bit as well via #1136

Screenshot 2023-03-31 at 1 44 04 PM

@bdraco bdraco changed the title Reduce overhead to send responses feat: reduce overhead to send responses Mar 31, 2023
There are still cases were we cannot answer questions fast enough
to keep up with systems (mainly HomeKit) that require a response
within a time period to prevent a device from going offline.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 31, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (808c3b2) 99.80% compared to head (cc66021) 99.80%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1135   +/-   ##
=======================================
  Coverage   99.80%   99.80%           
=======================================
  Files          22       22           
  Lines        2594     2603    +9     
  Branches      456      456           
=======================================
+ Hits         2589     2598    +9     
  Misses          3        3           
  Partials        2        2           
Impacted Files Coverage Δ
src/zeroconf/__init__.py 100.00% <100.00%> (ø)
src/zeroconf/_core.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bdraco bdraco mentioned this pull request Apr 1, 2023
@bdraco bdraco marked this pull request as ready for review April 1, 2023 01:45
@bdraco bdraco merged commit c4077dd into master Apr 1, 2023
@bdraco bdraco deleted the response branch April 1, 2023 01:47
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.

2 participants