Re: Capy review
Peter Dimov via Boost <[email protected]> Tue, 30 Jun 2026 02:44:44 +0300
| Newsgroups | gmane.comp.lib.boost.devel |
|---|---|
| Message-ID | <[email protected]> |
Ruben Perez wrote: > My use case (length-prefixed message protocols) looks like a good use case for > capy::read (plain buffer version). Actually, the reference section lists this use > case as example [18]. I'm not sure this pattern is efficient, though, as with > most streams in Corosio you'd be running two syscalls per message. As an > improvement, I could implement a wrapper stream that buffers bytes (à la > Asio's buffered_stream [19]), but manual handling looks simpler to me. Buffered streams are absolutely essential for performance when serializing or deserializing (e.g. over binary protocols), see https://github.com/pdimov/corosio_protocol_bench _______________________________________________ Boost mailing list -- [email protected] To unsubscribe send an email to [email protected] https://lists.boost.org/mailman3/lists/boost.lists.boost.org/ Archived at: https://lists.boost.org/archives/list/[email protected]/message/RLJFXCXCO6FMJPE7DGE3OS372LKMQK62/