This project has moved. For the latest updates, please go here.
1
Vote

Don't use exceptions for control flow in TrySetPropertyValue

description

TrySetPropertyValue has a 1000x worst-case performance thanks to the use of exceptions.

I did a small experiment with 1M objects of mixed types where TrySetPropertyValue fails half the time and it's 500x slow than hand-written reflection code:
http://theburningmonk.com/2015/08/fasterflect-vs-hyperdescriptor-vs-fastmember-vs-reflection

comments