Solved

What is the maximum size for an assembly, and how are instances shared in the GAC?

Posted on 2004-08-06
1
361 Views
Last Modified: 2011-10-03

I have created an Assembly in VB.NET that holds typed DataSet classes of all tables in our SQL Server DB.  The assembly is called by ASP.NET pages.  Currently the Assembly is aprox 3 megs in size, and still growing.  Is the size a concern?  How big is too big?

Is it appropriate to have this assembly located in the GAC?  Or should it be in a web application Bin directory?  If it is in the GAC, is only one instance loaded into memory and shared?  Or does it become a resource hog?

Thanks

0
Comment
Question by:CarlPenman
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 50 total points
ID: 11738678
I wouldn't worry about assembly size too much with faster computers these days.  Size may be a concern, but I think that is when it grows to around 15-20 MB.  If it becomes a problem, then you can segment the code into libraries that can be loaded and used when needed, instead having the code all in one assembly.

I treat the GAC like the Windows System Registry with COM (ActiveX) stuff.  It is more of a headache than I think is worth.  You can put dynamic library assemblies in the same location as the executing assembly (bin folder for ASP.NET), or even in a relative-path subfolder.  There just needs to be ways for .NET to find these assemblies.

Bob
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem with Filesystemobject or .NET version 3 32
Not showing page correctly 3 29
SSL https .net web site force redirect 3 34
VB.NET Repostiory Pattern 7 0
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now