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

Move message parsing out of the read loop #323

Merged
merged 1 commit into from Nov 30, 2022

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Nov 30, 2022

To further reduce the pressure on the esp, we want to read and drain the buffer as fast as possible, and since we have to wait to read while the data is processing we want the read loop to read as much as possible
first to keep the latency down and reduce the memory pressure on the esp.

aioesphomeapi/connection.py Outdated Show resolved Hide resolved
@bdraco

This comment was marked as off-topic.

@bdraco

This comment was marked as off-topic.

@bdraco

This comment was marked as off-topic.

@bdraco

This comment was marked as off-topic.

To further reduce the pressure on the esp, we want to read and drain the buffer as fast as possible, and since we have to wait to read while the data is processing we want the read loop to read as much as possible
first to keep the latency down and reduce the memory pressure on the esp.
@bdraco bdraco marked this pull request as ready for review November 30, 2022 20:01
@jesserockz jesserockz merged commit a452e73 into main Nov 30, 2022
@jesserockz jesserockz deleted the dont_block_for_processing branch November 30, 2022 22:42
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

2 participants