Skip to content

feat: speed up writing name compression for outgoing packets#1312

Merged
bdraco merged 7 commits into
masterfrom
outgoing_name_compression
Nov 13, 2023
Merged

feat: speed up writing name compression for outgoing packets#1312
bdraco merged 7 commits into
masterfrom
outgoing_name_compression

Conversation

@bdraco

@bdraco bdraco commented Nov 13, 2023

Copy link
Copy Markdown
Member

This is a ~13.5% speed up

@codecov

codecov Bot commented Nov 13, 2023

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant