Re:How the .NET Runtime Loads a Type
by bsaul on Friday June 16, 2017 @02:29AM
(#14567035)
Are there any benchmark of the cost in terms of performance paid by this process compared to other methods in other languages ? I suppose this happens only at load time, but i wonder if that doesn't have other impact elsewhere during the execution.
[ Parent
| on HN ]
Re:How the .NET Runtime Loads a Type
by matthewwarren on Friday June 16, 2017 @05:25AM
(#14567614)
I'm pretty sure this process only has an impact during startup and even then I don't know if it's that expensive to load Types like this, but I agree, it would be interesting to measure it compared to a similar run-time (say Java)
If reflection is being monitored closely etc then it must have some impact. Probably tiny
Re:How the .NET Runtime Loads a Type
by matthewwarren on Friday June 16, 2017 @05:22AM
(#14567604)
Reflection has a whole load of other overheads (see http://mattwarren.org/2016/12/14/Why-is-Reflection-slow/ for some info) so I doubt that actually loading a Type is high up the list of time-spent, but I've never actually measured it.