Open
Description
What language does this apply to?
C# codegen.
Describe the problem you are trying to solve.
Using protobufs in Unity can cause excessive garbage collection overhead because of all the new class instances created while parsing a proto into a message instance.
Describe the solution you'd like
I would like to be able to reuse a pool of message instances repeatedly for parsing protos.
Describe alternatives you've considered
I could not find examples, but perhaps there is a way to do it with reflection? Of course, if that's expensive then it is replacing garbage with CPU overhead.