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

feat: avoid calling get_running_loop when resolving ServiceInfo #1261

Merged
merged 2 commits into from Sep 9, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Sep 9, 2023

We already have the loop available as zc.loop

At Home Assistant startup we have a thundering heard of ServiceInfos being resolved. Avoid the get_running_loop() calls since it generates os.getpid() syscalls

At Home Assistant startup we have a thundering heard of ServiceInfos
being resolved. Avoid the get_running_loop() calls since it generates
os.getpid() syscalls
@codecov
Copy link

codecov bot commented Sep 9, 2023

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
src/zeroconf/__init__.py 100.00%
src/zeroconf/_services/info.py 100.00%

📢 Thoughts on this report? Let us know!.

@bdraco bdraco merged commit 33a2714 into master Sep 9, 2023
30 of 31 checks passed
@bdraco bdraco deleted the loop_fetch branch September 9, 2023 22:36
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.

None yet

1 participant