Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: improve performance of ServiceBrowser outgoing query scheduler #1170

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

Merged
merged 8 commits into from
May 4, 2023

Conversation

bdraco
Copy link
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

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
tests/test_asyncio.py Show resolved Hide resolved
@bdraco
Copy link
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.