Replies: 3 comments
-
Did you benchmark type cache against using delegates? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thanks for that. |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions