title: What is StringBuilder's RAM consumption like?
body: <p>We have a few operations where we are doing a large number of large string concatenations, and have recently encountered an out of memory exception.  Unfortunately, debugging the code is not an option, as this is occurring at a customer site.  </p>
  
  <p>So, before looking into a overhaul of our code, I would like to ask: what is the RAM consumption characteristics of StringBuilder for large strings?  </p>
  
  <p>Especially as they compare to the standard string type. The size of the strings are well over 10 MB, and we seem to run into the issues around 20 MB.</p>
  
  <p><strong>NOTE</strong>: This is not about speed but RAM.</p>