feat: speed up writing name compression for outgoing packets by bdraco · Pull Request #1312 · python-zeroconf/python-zeroconf

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@bdraco

Copy link Copy Markdown

Member

@bdraco bdraco commented

Nov 13, 2023

This is a ~13.5% speed up

@codecov

Copy link Copy Markdown

codecov bot commented

Nov 13, 2023

edited

Loading

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 Copy Markdown

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 Copy Markdown

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

@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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@bdraco