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 writing name compression for outgoing packets #1312

Merged
merged 7 commits into from Nov 13, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Nov 13, 2023

This is a ~13.5% speed up

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!

log.warning("packets() made no progress adding records; returning")
break

self._reset_for_next_packet()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't reset if we don't have more to add

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That can be another PR though

@bdraco bdraco marked this pull request as ready for review November 13, 2023 18:15
@bdraco bdraco merged commit 9caeabb into master Nov 13, 2023
31 checks passed
@bdraco bdraco deleted the outgoing_name_compression branch November 13, 2023 18:16
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