home navigator pointer resources navigator pointer asp tips navigator pointer use com objects
The definitive ASP tips page
tips menu | printable single page version

Note: this is my old ASP tips page and is no longer supported. See the new Visualize web site..

ASP Coding for Performance - Compile Routines into COM objects/DLLs

If you have routines that are used by many scripts, are fairly processor intensive in nature or contain a fair amount of business logic, consider compiling these up into COM objects/ActiveX DLLs, using tools such as VB, Delphi or VC++. These compiled routines will run faster than interpreted ASP and are often easier to maintain.

However, do remember that instantiating objects in ASP, do have some overhead, which should be taken into consideration when designing your scripts. Once created however, calling the various methods should be very efficient. As a basic rule, "create once, call many times, destroy (using =nothing) after use."

 

DISCLAIMER: Note these pages are a free resource for anyone wishing to reference them. Although every care is taken to ensure their correctness, the author takes no responsibility for any errors or problems that may occur through their use, or indeed misuse. These pages are copyight of Dave Clarke, Visualize Software Ltd 1997-2000 (all rights reserved).


 


© Copyright Dave Clarke, 1996-2008