hyperledger-archives / iroha

Iroha - A simple, decentralized ledger
http://iroha.tech
Apache License 2.0
988 stars 298 forks source link

Fix nested object copy in shared_model proto backend #2096

Closed lebdron closed 5 years ago

lebdron commented 5 years ago

Description of the Change

Fix nested object shared_model construction in protobuf backend. Now nested objects are not copied into shared_model objects, reducing the memory consumption twice. Remove redundant vector copy in yac/transport/impl/network_impl.cpp.

Benefits

Reduce memory consumption.

Possible Drawbacks

None.

Usage Examples or Tests

Add static object counters to shared_model::proto and iroha::protocol object and compare the output.