Size of Assemblies

Problem
You want to know how large your assemblies should be.

Solution
In general, prefer few large assemblies to many smaller ones. If you have a group of types that are always loaded and used together, place them in the same assembly. If you have two or more assemblies that are always loaded and used together, merge them into a single assembly.

Comments
The .NET runtime loads a large assembly faster than several smaller ones. A single, larger assembly creates a smaller working set of the application, and Ngen.exe can optimize it more effectively. On the other hand, you may need to split a larger assembly into several smaller ones if the types in it need to be assigned different identities or trust levels.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s