Anthony J Biondo Jr wrote:
>
> Hi Chris:
>
> The way I look at it, if you have allot of processing and logic you need to
> perform it should be done in COM, because of the sheer fact that each time a
> person hits the page it does not need to be recompiled.
An ASP page is NOT recompiled every time a person hits it!
It is only compiled for the first request; thereafter the pre-compiled
pcode (bytecode) is cached in IIS memory so all subsequent requests can
be executed immediately. For a description of the compilation and
execution process see Appendix 3 of
http://www.microsoft.com/technet/tre...e/iis5tune.asp
To see a sample of the compiled bytecode see
http://groups.google.com/groups?q=+%...-pc.org&rnum=2
> I guess everyone
> has their own perception of what "allot of processing" would be. I know
> that we use COM for the web where we expect allot of hits and have critical
> functions that need to happen. User Authentication, Logging, Inquiries to
> other data stores.
In the light of how IIS and ASP *really* work, your methodology should
be re-evaluated. COM components will enhance performance only if the
task is *highly* CPU-intensive. I/O bound tasks (e.g., "User
Authentication, Logging, Inquiries to other data stores") do not qualify
and will perform better when done in ASP script. Before components pay
off performance-wise, you must have a *lot* of compute-bound code:
"Rule of thumb: unless there are at least 100 lines of script and some
big loops in that script, it's probably not worth thinking about
translating that page into a component."
Alex Homer, Dave Sussman, Brian Francis
page 1042,
"Active Server Pages 3.0"
(Wrox Press Ltd., 1999)
See
http://groups.google.com/groups?oi=d...m=an_558802478 for more
details.
Good Luck,
Michael D. Kersey