cobalt icon indicating copy to clipboard operation
cobalt copied to clipboard

Provide async_read_until that uses symmetric transfer

Open mzimbres opened this issue 2 years ago • 1 comments

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.

mzimbres avatar Oct 03 '23 07:10 mzimbres

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

klemens-morgenstern avatar Oct 04 '23 23:10 klemens-morgenstern