This is interesting - a side-by-side performance comparison of reflection, dynamic, and direct property access.
Reflection is slow – 2000 times slower than direct access – though we all knew that.
Dynamic is also slow, but only 60 times slower than direct access. That’s not too shabby.
Another way to look at it - dynamic is more than 30 times faster than reflection. This more than makes it viable for certain classes of problem.
Comments
blog comments powered by Disqus