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: add a cache to service_type_name #1211

Merged
merged 1 commit into from
Aug 3, 2023
Merged

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Aug 3, 2023

This function gets called all over the place and when we construct a lot of ServiceInfos for queries its the most expensive part. Since we tend to query the same records over and over when a ServiceBrowser is running, this can have quite a cost

This function gets call all over the place and when we construct
a lot of ServiceInfos for queries its the most expensive part. Since
we tend to query the same records over and over when a ServiceBrowser
is running, this can have quite a cost
@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (3dba5ae) 99.78% compared to head (5942902) 99.78%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1211   +/-   ##
=======================================
  Coverage   99.78%   99.78%           
=======================================
  Files          22       22           
  Lines        2749     2750    +1     
  Branches      477      478    +1     
=======================================
+ Hits         2743     2744    +1     
  Misses          3        3           
  Partials        3        3           
Files Changed Coverage Δ
src/zeroconf/__init__.py 100.00% <100.00%> (ø)
src/zeroconf/_utils/name.py 98.43% <100.00%> (+0.02%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco merged commit 53a694f into master Aug 3, 2023
34 checks passed
@bdraco bdraco deleted the cache_service_type_name branch August 3, 2023 23:41
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