Coding for Performance : for vs. foreach
Coding for Performance : Casting
Coding for Performance : Casting
Coding for Performance : P/Invoke
Coding for Performance : P/Invoke
Coding for Performance : Avoid UnBoxing
Coding for Performance : Avoid UnBoxing
Coding For Performance : Interface Dispatch
Coding For Performance : Interface Dispatch
Coding for Performance : Override Equals & GetHashCode 4 Structs
An extremely important part of using structs is overriding the Equals and GetHashCode methods. If you don’t, you will get the default versions, which are not at all good for performance. To get an idea of how bad it is, use an IL viewer and look at the code for the ValueType.Equals method. It involves... Continue Reading →