lukezhan
Thu Sep 18 02:12:48 CDT 2003
HI Mike,
I think Class statement wouldn't have much impact on the ASP's performance.
Instantiating a class is slightly faster than instantiating a component
because you use different instantiation approaches. To instantiate a
component, you must use the CreateObject method. This method requires the
language parser to pass through the system's Registry and the COM
infrastructure, which adds processing time. To instantiate a class, you use
the New keyword, which Microsoft added in VBScript 5.0. This keyword
doesn't require the language parser to pass through the system's Registry
and the COM infrastructure, so VBScript classes enjoy the advantage of
better performance.
For more inforamtion on VBScript 5.0, you may refer to this article:
http://msdn.microsoft.com/library/en-us/dnclinic/html/CLINICK_IE5.asp
Luke
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)