Skip to content

feat: reduce overhead to enumerate ip addresses in ServiceInfo#1181

Merged
bdraco merged 2 commits into
masterfrom
enum_overhead_py311
Jun 13, 2023
Merged

feat: reduce overhead to enumerate ip addresses in ServiceInfo#1181
bdraco merged 2 commits into
masterfrom
enum_overhead_py311

Conversation

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

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 bdraco force-pushed the enum_overhead_py311 branch from a2fd7ad to 13569fe Compare June 12, 2023 22:56
@bdraco
Copy link
Copy Markdown
Member Author

bdraco commented Jun 12, 2023

actions is busted

@bdraco
Copy link
Copy Markdown
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
@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.

1 participant