0

The project I am working on is in C++. In order to send and receive data on the network, I use boost library to serialize and deserialize and it works perfectly fine. The problem is that since I use serialization, it adds a huge amount of overhead on each message. For each field, it adds a field type. Since the message size is really critical and it should be as less as possible, I just want to send the real data. I use many arrays, which are created dynamically and as a result, I cannot easily send the pointers. For each and every pointers, I should go inside to sort of serialize it by myself.

Any idea how to make a use of boost serialization while keep the message size exactly to the real size.

Thanks

4

0 回答 0