3 ms·
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 l
by bsaul 9y ago
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.
- matthewwarren 9y agoI'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)
- simooooo 9y agoIf reflection is being monitored closely etc then it must have some impact. Probably tiny
- matthewwarren 9y agoReflection has a whole load of other overheads (see http://mattwarren.org/2016/12/14/Why-is-Reflection-slow/ 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.