How costly is .NET reflection?

In his talk The Performance of Everyday Things, Jeff Richter shows that calling a method by reflection is about 1000 times slower than calling it normally.

Jeff’s tip: if you need to call the method multiple times, use reflection once to find it, then assign it to a delegate, and then call the delegate.

Leave a Comment