Boxing and collections
Standard, out of the box .NET collections store references of type System.Object. We have a structure that we add to a collection. We add approx 2500 structure types to this collection.
Well, duh, if we are adding a structure, which is a value type, to a collection, which stores a reference type, the structure will get boxed and allocated on the heap 2500+ times! Its like creating a reference type 2500+ times!
Solution: use a reference type (class) vs. a structure in this case.