4 ms·
It seems a bit silly to me that the author uses number of method calls (which is only like 4?) and lines of codes as a metric for how slow the function is.
by foota 10y ago
It seems a bit silly to me that the author uses number of method calls (which is only like 4?) and lines of codes as a metric for how slow the function is.
- recursive 10y agoHe also uses time.
- taspeotis 10y agoAnd other complementary metrics, like memory allocations.
- matthewwarren 10y agoYeah that's just to illustrate it's doing a lot of work compared to calling the property without reflection (which isn't even a method call as its inlined)