home navigator pointer resources navigator pointer asp tips navigator pointer dictionary object
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 - The Dictionary Object

This object is often overlooked and can often be an excellent replacement for hand-crafted arrays. It provides an efficient look-up facility, via key/data pairs. Of course, don't forget to explicitly destroy the object after use by setting = nothing. ;-)

Finally, as tempting as it may seem, avoid storing this object at application level. The component is not truly free-threaded, so doing so will result in unpredictable results and data corruption may well result. This is a shame, as in many situations having the dictionary at application level would be very useful. Perhaps Microsoft will fix this in a future release.

See also Beware of storing components at sesson/application level.

 

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