||[Jul. 17th, 2015|03:39 pm]
I have a simple Dictionary<long, long> object which takes up 500 MB space when i populate 10 million entries in it. But when I use nested dictionary Dictionary<long, Dictionary<long, long>>, the same 10 million entries were taking 2.5 GB space. The internal dictionary was filled with only single entry.
Can someone help in explaining how the dictionary in .net is allocated memory and how does it grow in size?