Replies: 3 comments
|
Did you benchmark type cache against using delegates? |
|
Smart.Format ReflectionSource: TypeCache is concurrent dictionary using tuple (sourceType, selector) as key. Fast Reflection use caching also, but value is not MemberInfo, but Delegate.
Delegate can be obtained in several ways. The link you send me refer to Delegate compiled from Expressions. |
|
Thanks for that. |
Uh oh!
There was an error while loading. Please reload this page.
Reflection are slow. Type cache speed up a bit. Delegates are faster then reflection. Then we boost them even more by generating them in IL
https://github.com/vexe/Fast.Reflection
All reactions