Boost logo

Boost :

Subject: [boost] [serialization] Portable binary archive
From: Renato Forti (re.tf_at_[hidden])
Date: 2013-08-19 16:19:29


Hi All,

I am using boost serialization to transfer files, because of portability, I
am using:

 

boost::archive::text_oarchive

boost::archive::text_iarchive
 

But in testing I've done, it seems to quadruple the size of the file!

I saw it in serialization test folder:

boost_1_54_0/libs/serialization/example

4 files to work in binary mode (that are very more efficient way):

portable_binary_iarchive.cpp (hpp)

portable_binary_oarchive.cpp (hpp)

My Question:

Why not this files are on the library?

Anyone ever used them in production? Are safe?

How to use? How build serialization lib with these files? I need change bjam
of serialization to include these files?

One more question:

Someone has used Google Protocol Buffer? Could compare with boost
serialization?

 <https://code.google.com/p/protobuf/> https://code.google.com/p/protobuf/

Thanks

 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk