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 question and answer internals #1272

Merged
merged 4 commits into from Sep 14, 2023
Merged

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Sep 14, 2023

Use cythoned classes instead of named tuples since named tuples can't be fully cythonized.

These didn't need to be named tuples because they are never unpacked and always accessed by name anyways

Add some more types in the answer path

Use cythoned classes instead of named tuples
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
src/zeroconf/__init__.py 100.00%
src/zeroconf/_dns.py 100.00%
src/zeroconf/_handlers/answers.py 100.00%

📢 Thoughts on this report? Let us know!.

@bdraco bdraco marked this pull request as ready for review September 14, 2023 03:26
@bdraco bdraco merged commit d24722b into master Sep 14, 2023
34 checks passed
@bdraco bdraco deleted the question_answers branch September 14, 2023 03:26
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