Performance of calling delegates vs methods
I haven’t seen that effect – I’ve certainly never encountered it being a bottleneck. Here’s a very rough-and-ready benchmark which shows (on my box anyway) delegates actually being faster than interfaces: using System; using System.Diagnostics; interface IFoo { int Foo(int x); } class Program : IFoo { const int Iterations = 1000000000; public int Foo(int … Read more