bosagora / agora

POC Node implementation for CoinNet
https://bosagora.io
MIT License
37 stars 22 forks source link

Ensure NRVO is done through the Deserializer to avoid memory corruption #691

Open Geod24 opened 4 years ago

Geod24 commented 4 years ago

We plan to expand the usage of the serializer to be used for network communication. Currently we are using the less-than-ideal JSON approach, which adds a lot of overhead. However, due to concerns about efficiency and internal pointers (e.g. std::string), the deserializer should not perform any unwarranted move.

DoD:

Geod24 commented 2 years ago

This is testing only, and we know it works, so changing the milestone.