cobalt
cobalt copied to clipboard
Provide async_read_until that uses symmetric transfer
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.
Good idea, but I might just add my own impl if I do some IO work.