Using Collections with value type data and it's Performance impact
One of the most regular faults we do is using collections to store data of value type such as int and float and we don't look deeply to the performance impact of this operation so what is the performance impact in that I'll explain.
When storing value type data in collection it is stored as object which is a reference type which will explicitly cast this value type data to a reference type this operation is called boxing. To avoid this try to use arrays rather than collections when dealing with value type data like int, float and so on.