[thelist] New comer
Anthony Baratta
Anthony at Baratta.com
Tue Jul 25 19:10:46 CDT 2000
"joey ..." wrote:
>
> Hi everyone,
>
> Just joined the list, hope I can come in use!!!
Can you go get my laundry, here's my grocery shopping list while your at it, and
water the plants for me??
<TIP Author="Anthony Baratta" Subject="Minimize your user of the Print Command">
When you are throwing a lot of stuff back to the browser store all your stuff into a
variable, then throw it to the browser with one Print or Repsonse.Write statement.
Multiple Print or Repsonse.Write statements cause extra load - this will speed up
your program execution and page load tremendously for large programs.
e.g. Instead of... (Perl Example)
print "blah blah blah blah\n";
print "blah blah blah blah\n";
print "blah blah blah blah\n";
print "blah blah blah blah\n";
do this...
$varHTML .= "blah blah blah blah\n";
$varHTML .= "blah blah blah blah\n";
$varHTML .= "blah blah blah blah\n";
$varHTML .= "blah blah blah blah\n";
print $varHTML;
e.g. Instead of... (ASP Example)
Response.Write "blah blah blah blah\n";
Response.Write "blah blah blah blah\n";
Response.Write "blah blah blah blah\n";
Response.Write "blah blah blah blah\n";
do this...
varHTML = varHTML & "blah blah blah blah\n";
varHTML = varHTML & "blah blah blah blah\n";
varHTML = varHTML & "blah blah blah blah\n";
varHTML = varHTML & "blah blah blah blah\n";
Response.Write $varHTML;
</TIP>
--
Anthony Baratta
President
KeyBoard Jockeys
South Park Speaks Version 3 is here!!!
http://www.baratta.com/southpark
Powered by Tsunami
More information about the thelist
mailing list