GAC vs BIN

3 posts, 0 answers
  1. TorgerJW
    TorgerJW avatar
    16 posts
    Member since:
    Jul 2006

    Posted 12 May 2008 Link to this post

    I have a handful of applications running under IIS6 & .NET 2.0 that all use various controls from both Rad Controls for ASP.NET and Rad Controls for ASP.NET AJAX.

    Does anyone know if there are performance increases or app_pool memory usage reduction from installing controls to the global assembly cache (GAC) instead of linking them as need in the web.config and bin directory?

    Thanks!



  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 12 May 2008 Link to this post

    Hello TorgerJW,

    I actually was pondering the exact same question a few weeks ago.  Basically, it boils down to the concept of strongly named assemblies.  The way I understand it, the goal of strong naming is to allow the server to automatically recognize assemblies that are already in memory so that they don't need to be re-loaded.  Now, I'm not an expert on that but after monitoring memory usage on our servers that does appear to be the case.  What I'm not certain of is whether or not the assembly is shared across several processes or not - I try to keep all the like-minded applications in the same application pool.

    Now, there is another impact that I stumbled upon that affected my scenario but is unlikely to affect others, but is perhaps useful information anyway.  If the applications aren't pre-compiled and all the other default settings are being used, ASP.NET will keep a compiled version of the application as well as a copy of all the dll's in the bin directory in the "Temporary ASP.NET Files" folder.  It will do this once for every application.  So, since the Telerik.Web.UI dll is now about 12 MB (and growing), if you had 10 sites the disk space used starts to grow quite quickly.  Using the GAC prevents this from happening (as does pre-compiling).  The only reason I found this out is because I have a relatively small partition on the hard drive that was getting filled as the number of applications increased.

    Shaun.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. TorgerJW
    TorgerJW avatar
    16 posts
    Member since:
    Jul 2006

    Posted 13 May 2008 Link to this post

    Thanks Shaun,

    Both of your comments agree with what I was anticipating.
Back to Top