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: reduce overhead to enumerate ip addresses in ServiceInfo #1181

Merged
merged 2 commits into from Jun 13, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Jun 12, 2023

Most of the reply overhead was because of the enums which happens A LOT if there are homekit devices on the network

Screenshot 2023-06-12 at 11 43 26 AM

Most of the reply overhead was because of the enums
@codecov
Copy link

codecov bot commented Jun 12, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (f03e511) 99.81% compared to head (13569fe) 99.81%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1181   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files          22       22           
  Lines        2695     2700    +5     
  Branches      470      470           
=======================================
+ Hits         2690     2695    +5     
  Misses          3        3           
  Partials        2        2           
Impacted Files Coverage Δ
src/zeroconf/__init__.py 100.00% <100.00%> (ø)
src/zeroconf/_services/info.py 100.00% <100.00%> (ø)

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

@bdraco
Copy link
Member Author

bdraco commented Jun 12, 2023

actions is busted

@bdraco
Copy link
Member Author

bdraco commented Jun 13, 2023

This is nearly a 70% speed up to fetching the ips. That enum overhead is really suprising but we had the same issue with dbus-fast so it shouldn't be.

@bdraco bdraco marked this pull request as ready for review June 13, 2023 00:17
@bdraco bdraco merged commit 6a85cbf into master Jun 13, 2023
30 checks passed
@bdraco bdraco deleted the enum_overhead_py311 branch June 13, 2023 00:18
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