nathan schmoll's
aspdiscovery

back to main page

e-mail me








Scripting Strategies #2: Batch For Efficiency!
Are you running a large site based on ASP where every little millisecond matters? Probably not (great if you are, though!), but page efficiency STILL matters! When you have several people accessing a page at the same time on a server, milliseconds CAN count, so use this great Scripting Strategy!

Instead of doing a bunch of this:

<%
foo=bar
%>
<html>
<%
response.write("foo")
%>

try grouping as much ASP code together as possible, like this:

<html>
<%
foo=bar
response.write("foo")
%>

By grouping code together, instead of just placing it sporadically around the page, it makes the ASP engine's job easier and therefore speeds up the execution of your script, delivering to your potential customers the information they require, faster!

copyright © 2001, nathan schmoll. all rights reserved. questions? comments? suggestions? e-mail me!