Startup Performance

Topics: Data Access Application Block, Exception Handling Application Block, General discussion, Logging Application Block
Nov 18, 2009 at 6:49 PM

I have a small web site (1.5 meg) that is now using the Data Access Blocks, Exception Access Block and Logging Access blocks which is 2.3meg in the following DLL's:

Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Common.xml
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.HostAdapter.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.UI.dll
Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Design.dll
Microsoft.Practices.EnterpriseLibrary.Data.dll
Microsoft.Practices.EnterpriseLibrary.Data.xml
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.Design.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.Configuration.Design.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.Design.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll
Microsoft.Practices.ObjectBuilder2.dll
Microsoft.Practices.Unity.Configuration.dll
Microsoft.Practices.Unity.dll
Microsoft.Practices.Unity.Interception.Configuration.dll
Microsoft.Practices.Unity.Interception.dll

The first time the site is used, there is atleast a 10 to 15 second delay that wasn't there before the Enterprise Blocks were introduced.

Is there anyware of increasing the startup performance?  Like using the GAC, not including all the DLL's etc?

Thanks ... Douglas

Nov 19, 2009 at 5:04 AM

I believe the suggestions you made are ok.  You can do away with most of the configuration and design dlls, just include those which you actually referenced in your project. 

Deploying assemblies to GAC also improves the load performance as they are already verified but it would cause issues if there are other applications in your machine which uses a different version of entlib.

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com