Use Early Binding to Components


Use Early Binding to Components

Early binding provides a noticeable performance increase for components that are used in ASP.NET pages. The actual performance hit from late-bound components depends on the amount of transferred data. However, for a component that has to marshal strings, an approximate measure of performance can be gauged from the following comparisons:

  • COM or COM+ components using late binding provide around the same level of performance as in ASP 3.0 with VBScript.

  • COM or COM+ components using early binding (for example, components wrapped with the tlbimp utility) provide around 50 percent better performance than in ASP 3.0 with VBScript.

  • Early-bound .NET components provide around three times better performance than the equivalent COM or COM+ components using late binding in ASP 3.0 with VBScript.

All the .NET objects provided by the framework, including all ASP.NET server controls, are automatically early-bound. The instantiate/destroy cycle is also very efficient under the .NET framework, and stateful components (components that cannot be pooled in Component Services or MTS) are acceptable.




Professional ASP. NET 1.1
Professional ASP.NET MVC 1.0 (Wrox Programmer to Programmer)
ISBN: 0470384611
EAN: 2147483647
Year: 2006
Pages: 243

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net