Jump to content


Fast dynamic loading of assemblies in C#.


  • You cannot reply to this topic
No replies to this topic

#1 roxtar

    Member

  • Members
  • PipPip
  • 94 posts

Posted 24 June 2006 - 08:49 AM

Hi,
I want to dynamically load some assemblies and invoke certain functions given in those assemblies. All these functions will implement the same interface, so that I don't have to bear the performance hit of a Type.InvokeMember call. For loading these assemblies dynamically I will, obviously, have to use the Assembly.Load/LoadFrom routines.
My question is, is it advisable to put some assemblies (which may be dynamically loaded frequently) into the GAC or have some sort of a replacement algorithm (like LRU) to add and remove these assemblies from the GAC ? Also, if I put these assemblies into the GAC, will the Assembly.Load/LoadFrom routines check the GAC first while searching for the assembly or will I have to query the GAC to find whether the requested assembly exists in the GAC or not and then proceed?

Thanks for any thoughts or help.
Cheers





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users