Hussein Zahran [MVP]

ASP.NET Gate

<September 2008>
SuMoTuWeThFrSa
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011


Navigation

Friendly Blogs

Subscriptions

News

About Me






Hussein's Life

Post Categories



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.

posted on Saturday, May 07, 2005 3:55 PM by Hussein





Powered by Dot Net Junkies, by Telligent Systems