Skip to content

feat: improve performance of ServiceBrowser outgoing query scheduler#1170

Merged
bdraco merged 8 commits into
masterfrom
scheduler
May 4, 2023
Merged

feat: improve performance of ServiceBrowser outgoing query scheduler#1170
bdraco merged 8 commits into
masterfrom
scheduler

Conversation

@bdraco
Copy link
Copy Markdown
Member

@bdraco bdraco commented May 3, 2023

The bulk of the time was spent checking to see if queries were ready to go out from the reschedule which checks every type the ServiceBrowser has configured. Since we are only adjusting one type we can guard this with a simple check to avoid checking every type

bdraco added 2 commits May 3, 2023 18:11
closes #821

The bulk of the time was spent checking to see
if queries were ready to go out from the reschedule
which checks every type the ServiceBrowser has
configured. Since we are only adjusting one
type we can guard this with a simple check to avoid
checking every type
@codecov
Copy link
Copy Markdown

codecov Bot commented May 3, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (06fa94d) 99.81% compared to head (43f20bc) 99.81%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1170   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files          22       22           
  Lines        2671     2673    +2     
  Branches      464      465    +1     
=======================================
+ Hits         2666     2668    +2     
  Misses          3        3           
  Partials        2        2           
Impacted Files Coverage Δ
src/zeroconf/__init__.py 100.00% <100.00%> (ø)
src/zeroconf/_services/browser.py 99.13% <100.00%> (+<0.01%) ⬆️

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

@bdraco bdraco marked this pull request as draft May 3, 2023 23:47
Comment thread tests/test_asyncio.py
@bdraco
Copy link
Copy Markdown
Member Author

bdraco commented May 4, 2023

Looks like we already have good coverage to make sure the query schedule will always return 0 if it should send now

@bdraco bdraco marked this pull request as ready for review May 4, 2023 00:40
@bdraco bdraco merged commit 963d022 into master May 4, 2023
@bdraco bdraco deleted the scheduler branch May 4, 2023 00:40
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