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: speed up the service registry #1174

Merged
merged 2 commits into from May 25, 2023
Merged

feat: speed up the service registry #1174

merged 2 commits into from May 25, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented May 24, 2023

Every lookup was doing .lower() on the input after #597. Since we only feed this data in via handlers and core, we should lower the name before feeding it into the registry to avoid doing it 1000s of times

Every lookup was doing .lower() on the input. Since we
only feed this data in via handlers and core, we should
lower the name before feeding it into the registry to
avoid doing it 1000s of times
@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (963d022) 99.81% compared to head (8a00ae9) 99.81%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1174   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files          22       22           
  Lines        2673     2674    +1     
  Branches      465      465           
=======================================
+ Hits         2668     2669    +1     
  Misses          3        3           
  Partials        2        2           
Impacted Files Coverage Δ
src/zeroconf/__init__.py 100.00% <100.00%> (ø)
src/zeroconf/_core.py 100.00% <100.00%> (ø)
src/zeroconf/_handlers.py 100.00% <100.00%> (ø)
src/zeroconf/_services/registry.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 marked this pull request as ready for review May 25, 2023 12:45
@bdraco bdraco merged commit 360ceb2 into master May 25, 2023
30 checks passed
@bdraco bdraco deleted the lower branch May 25, 2023 12:45
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