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

Simplifications in the parser #130

Merged
merged 1 commit into from
Jul 30, 2023
Merged

Conversation

mzimbres
Copy link
Collaborator

This PR has simplified the parser massively and made it simpler to do RESP3 sans-io. Calls to async_read_until and async_read have been replaced with async_read_some. The net result is that a lot of redundant reschedules and buffer rotations have been avoided. In local benchmarks the performance increased from 140k messages/s to 390k/s.

@mzimbres mzimbres linked an issue Jul 30, 2023 that may be closed by this pull request
@mzimbres mzimbres merged commit 7d16259 into develop Jul 30, 2023
@mzimbres mzimbres deleted the 119-simplify-the-parser-op branch July 30, 2023 09:45
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.

Simplify the parser op
1 participant