Does protocol buffer supports allocating entries on custom allocator. Basically my requirement is to use PMEM as my extended DRAM. I am using libmemkind library for allocating/deallocating stuffs from PMEM.
I have few protobuf objects on DRAM which I need to move to pmem using libmemkind.
One way is to serialize these protobuf objects and copy raw bytes, but this will incur serialization and deserialization penalties. Is there a way to copy deserialized objects itself from DRAM to PMEM ? This can be doable if protobuf can support custom allocator while creating new objects.