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 outgoing packet writer #1313

Merged
merged 7 commits into from Nov 13, 2023
Merged

feat: speed up outgoing packet writer #1313

merged 7 commits into from Nov 13, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Nov 13, 2023

  • refactor the loop to only call _has_more_to_add once per loop when its a query
  • add some more cython types
  • cache common shorts

This is a ~22% speed up

refactor the loop to only call _has_more_to_add once per loop when
its a query
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
src/zeroconf/__init__.py 100.00% <100.00%> (ø)
src/zeroconf/_protocol/outgoing.py 100.00% <100.00%> (ø)

📢 Thoughts on this report? Let us know!

@bdraco bdraco marked this pull request as ready for review November 13, 2023 19:26
@bdraco bdraco merged commit 55cf4cc into master Nov 13, 2023
34 checks passed
@bdraco bdraco deleted the refactor_packets branch November 13, 2023 19: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