Please find the link aswell,--https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.common
Is there any other way to deallocate the memory ?
On Wednesday, March 11, 2020 at 3:36:39 PM UTC+5:30, Gaurav sahil wrote:Google Protocol Buffer Version - 3.5.xUsage - Using it to share data between and embeded system and cloud.Issue - After packetizing the data we use ParentMessage->Clear(); function to clear the data. This function is not reducing the memory allocated.Checked in Google Protocol buffer documentation that the memory allocated by new is internally being allocated statically.What does statically mean ? Will the memory be available statically even after clear. ?
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/7a55044e-a44a-497d-ac02-d35800f2c084%40googlegroups.com.
I am curious is there a way to reduce this threshold maybe? Or some other way to delete the memory.
Actually we have a multithreaded application. Each thread useses protobuff object to serialize the data.
So we cant wait for one thread to complete its clear(). All this have to be done simultaneously.