Philip Mak wrote:
> ...
> <body>
> (a little text here)
> <%
> if (some condition) {
> $Response->Redirect('some url');
> }
> %> ...
>
> When the Redirect path is taken, am I making Apache::ASP do wasted work in
> writing out that text and then clearing the buffer again? If yes, is this
> significant? (I noticed that PHP is not so nice if I try to do something
> similar; it'll just complain that headers have already been sent out.)
What Redirect here is doing is not flushing the prior text.
The text built up before hand is largely the result of
a string literal being passed to $Response->Write(), so you
are really only wasting a function call with a bit of
HTML passed to it. I wouldn't sweat it.
Now, if you were doing some major database calls before
the Redirect() I would start to worry about the efficiency
of the whole deal.
If you ever want to see the perl version of the compiled
ASP script, create a compile time error in your script,
and set Debug to 2 or 3 and enjoy the show. This can help
you see what inefficiencies there may be with your script.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks <- Web Link Checking Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]