title: C# List<double> size vs double[] size
body: <p>So I just was testing the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A362781C-3870-43BE-8926-862B40AA0CD0&amp;displaylang=en" rel="nofollow noreferrer">CLR Profiler</a> from microsoft, and I did a little program that created a List with 1,000,000 doubles in it. I checked the heap, and turns out the List&lt;> size was around 124KB (I don't remember exactly, but it was around that). This really rocked my world, how could it be 124KB if it had 1 million doubles in it? Anyway, after that I decided to check a double[1000000]. And to my surprise (well not really since this is what I expected the with the List&lt;> =P), the array size is 7.6MB. HUGE difference!!</p>
  
  <p>How come they're different? How does the List&lt;> manage its items that it's so (incredibly) memory efficient? I mean, it's not like the other 7.5 mb were somewhere else, because the size of the application was around 3 or 4 KB bigger after I created the 1 million doubles.</p>