[Mono-dev] System.Reflection.Assembly::Load Performance?
babbage at lindenlab.com
Wed Dec 9 09:00:53 EST 2009
2009/12/1 Zoltan Varga <vargaz at gmail.com>
> It is possible that you are using AppDomain.AssemblyLoad which is called
> every time an
> assembly is loaded ? Or a profiler callback ?
The code I'm using for loading is:
public Script(string class_name, byte class_data,
ref long event_handlers)
Assembly assembly = Assembly.Load(class_data);
foreach (Type NewType in assembly.GetTypes())
UserScript userScript =
SetUser(userScript, ref event_handlers);
It's the Assembly.Load(class_data) call that is taking the time.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list