16
votes
8answers
5k views

C++ Serialization Performance

I'm building a distributed C++ application that needs to do lots of serialization and deserialization of simple data structures that's being passed between different processes and computers. I'm not ...
13
votes
7answers
15k views

Serialize and send a data structure using Boost?

I have a data structure that looks like this: typedef struct { unsigned short m_short1; unsigned short m_short2; unsigned char m_character; } MyDataType; I want to use boost::serialization ...
12
votes
3answers
481 views

Derived class serialization without class tracking in Boost (C++)

I have some problems with boost serialization when serializing derived class through base class pointer. I need a system which serialize some objects as they are being received in the system, so i ...
12
votes
2answers
243 views

Deriving custom archive classes from boost::archive::text_oarchive_impl and boost::archive::text_iarchive_impl

Note: Boost's archive scheme is based on symmetrical input and output archive classes. It's tedious to write about both of them all the time, so I'll use ?archive to mean both oarchive and iarchive. ...
10
votes
2answers
3k views

Direct boost serialization to char array

Boost serialization doc's assert that the way to serialize/deserialize items is using a binary/text archive with a stream on the underlying structure. This works fine if I wan't to use the serialized ...
8
votes
6answers
650 views

Python-style pickling for C++?

Does anyone know of a "language level" facility for pickling in C++? I don't want something like Boost serialization, or Google Protocol Buffers. Instead, something that could automatically ...
8
votes
3answers
4k views

YAML serialization library for C++?

YAML seems like a great format for configuration files & data binding persistent objects in human-readable form... Is there a C++ library that handles YAML? Does Boost::Serialization have plans ...
8
votes
1answer
290 views

C++ Boost.serialization vs simple load/save

I am computational scientist that work with large amount of simulation data and often times I find myself saving/loading data into/from the disk. For simple tasks, like a vector, this is usually as ...
8
votes
1answer
2k views

What does BOOST_SERIALIZATION_NVP do when serializing object?

I am using boost.serialization. some sample code use BOOST_SERIALIZATION_NVP in serialize method: template<class Archive> void save(Archive & ar, const unsigned int version) const { ar ...
8
votes
1answer
693 views

Is the C++ boost binary serialization library backward/foward compatible? [duplicate]

Possible Duplicate: Boost Serialization Library upgrade I am trying to find a serialization solution for a C++ application. I would really like to be able to use boost binary serialization. ...
7
votes
2answers
4k views

Boost Serialization using polymorphic archives

I am working on a client-server application that uses boost::serialization library for it's serialization needs. I need to serialize and deserialize polymorphic objects that does not seem to work. ...
7
votes
1answer
1k views

Creating own implementation of Boost::Archive

I'm currently creating a concept which uses Boost::Serialization and which needs to implement its own Boost::Archive cause the data has to be serialized in a certain way. There is documentation about ...
7
votes
2answers
586 views

boost serialization and doubles

I am trying to serialize a class to a string using the boost serialization library and included in my class are several double member variables. Below is the code I'm using to serialize: #include ...
7
votes
2answers
2k views

C++ Serialization Performance

I'm building a distributed C++ application that needs to do lots of serialization and deserialization of data stored in std containers. Currently Boost.serialization is adopted. However, it performs ...
7
votes
1answer
501 views

boost::serialization high memory consumption during serialization

just as the topic suggests I've come across a slight issue with boost::serialization when serializing a huge amount of data to a file. The problem consists of the memory footprint of the ...

1 2 3 4 5 15
15 30 50 per page