Load Assemblies

  • Thread starter Thread starter BuddyWork
  • Start date Start date
B

BuddyWork

Hello,

Is there anyway that I can increase performance when my
references (.Net assemblies) get's loaded by my
application, for example when an user clicks on a button
within my application and the assembly reference has not
been loaded than it can take up to 5-10 seconds to load
it, the next time it's quick, also I don't want to load
all the assembly reference when the application starts
otherwise it will spend about a minute loading the
application.

My application as approx 50 aseembly references which used
throughout the application.
 
BuddyWork said:
Is there anyway that I can increase performance when my
references (.Net assemblies) get's loaded by my
application, for example when an user clicks on a button
within my application and the assembly reference has not
been loaded than it can take up to 5-10 seconds to load
it, the next time it's quick, also I don't want to load
all the assembly reference when the application starts
otherwise it will spend about a minute loading the
application.

My application as approx 50 aseembly references which used
throughout the application.

Well, ngening all those assemblies would remove JITting time, but from
the above, it sounds like your problem is that you've got a lot of
libraries but there's no point at which you want the pain of loading
them.

You could load them in the background in another thread, presumably,
but that may well have some interesting side-effects.
 
Are you loading assemblies yourself (using LoadFrom)? Are you loading them
remotely? There are a lot of things you can do to improve performance but
it all depends on how your application is designed.

You can also reduce the number of individual assemblies to the minimum
possible; this will reduce the amount of work the fusion layer has to do
when it resolves bindings.

Take a look at fuslogvw.exe; it should show you where the runtime is probing
for assemblies. It's possible that it is looking in multiple places to find
an assembly and this may be what is slowing down your app.
 
Back
Top