Skip to content

feat: speed up the service registry#1174

Merged
bdraco merged 2 commits into
masterfrom
lower
May 25, 2023
Merged

feat: speed up the service registry#1174
bdraco merged 2 commits into
masterfrom
lower

Conversation

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

bdraco added 2 commits May 24, 2023 11:07
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
Copy Markdown

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
@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.

1 participant