|
Boost Users : |
Subject: Re: [Boost-users] Performance of boost::serialization
From: Stefan Strasser (strasser_at_[hidden])
Date: 2010-09-17 15:02:19
Zitat von Robert Ramey <ramey_at_[hidden]>:
> For now I would suggest
>
> d) Make your own stream buffer implementation which sends the raw
> data down the pipe.
you might find some inspiration for this here:
https://svn.boost.org/svn/boost/sandbox/transaction/boost/transact/archive.hpp
https://svn.boost.org/svn/boost/sandbox/transaction/boost/transact/char_archive.hpp
it isn't a streambuf implementation but a Boost.Serialization archive
that can write to any output iterator with a "char" valuetype.
e.g.
serialization_oarchive<
char_oarchive<
std::back_insert_iterator<
std::vector<char>
>
>
>
by writing an output iterator to a fixed-size network buffer you
should be able to efficiently send your network message in chunks.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net