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

Provide async_read_until that uses symmetric transfer #127

Open
mzimbres opened this issue Oct 3, 2023 · 1 comment
Open

Provide async_read_until that uses symmetric transfer #127

mzimbres opened this issue Oct 3, 2023 · 1 comment

Comments

@mzimbres
Copy link

mzimbres commented Oct 3, 2023

A coroutine based implementation of asio::async_read_until should be more efficient than the Asio version since it can use symmetric-transfer to avoid a reschedule operation when the buffer already contain the separator.

It would be nice if you could provide this as an example. It would also be an opportunity to show users what kind of improvement they get in comparison to Asio. I would also include this in the benchmark session.

@klemens-morgenstern
Copy link
Collaborator

Good idea, but I might just add my own impl if I do some IO work.

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

No branches or pull requests

2 participants