title: How to minimize Protobuf.NET memory consumption
body: <p>I'm serializing large quantities of classes, most of them as references (as I have multiple refernces to the same classes in my data-structures) using Protobuf.NET.</p>
  
  <p>All of the serialized classes are serialized by using ImplicitFirends.AllFields to make sure
  everything is dumped.</p>
  
  <p>In my current test case, I have 53 files with a total sum of 500MB.</p>
  
  <p>When I read this data using a Protobuf.NET de-serializer my private bytes / resident memory shoots up to 9GB and STAYS there (i.e. this is not temporary memory released/GC'd after de-serialization).</p>
  
  <p>Another peculiar thing is that if I re-write (re-serialize) all of the data, it still stays at the same size.</p>
  
  <p>Does this x20 blow up in memory make sense?</p>