I feel Google protobuff is also using a memory pool internally.(placement NEW 
maybe) so once we clear(), it assigns the same memory to a new object. We 
analyzed the memory usage in smaps and observed that after reaching a 
particular memory threshold it doesn't increase further. 

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. 

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/36e657d3-885e-40f3-92a5-68b59c0f7c8c%40googlegroups.com.

Reply via email to