Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 What way is faster and more effective ?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

The Impact
Junior Member

Australia
398 Posts

Posted - 27 September 2003 :  09:20:11  Show Profile
I am writing a fair bit of new script to my site and want it to be as effective as possible.

My first question is when writing code is it better to do this :
With Response
      .Write   "<font face=""Arial"" size=""2"">Hello !!</font>" & vbNewLine
End With
Or this :
Response.Write "<font face=""Arial"" size=""2"">Hello !!</font>" & vbNewLine & _
                  "<font face=""Arial"" size'=""2"">Goodbye !!</font>" & vbNewLine & _
Or just a plain Response.Write.

What way is faster and more effective ?

Cheers !

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 27 September 2003 :  09:23:14  Show Profile  Visit D3mon's Homepage
I don't think there's much in it unless you've got *lots* of code...


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

The Impact
Junior Member

Australia
398 Posts

Posted - 27 September 2003 :  09:54:08  Show Profile
What way is best if I had lots of code ?

ASP files can grow very quickly when fingers meet a keyboard !
Go to Top of Page

altisdesign
Junior Member

United Kingdom
357 Posts

Posted - 27 September 2003 :  09:55:18  Show Profile
The only conclusive information on performance was a link posted by someone on these forums a while back, useful, added it to my favourites. Have a look here:

http://www.plourdenet.com/writing/benchmarks1.htm

Altis Design offers all manner of web design services to a variety of commercial and personal clients
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 27 September 2003 :  09:58:54  Show Profile  Visit D3mon's Homepage
IMHO, if you've a large amount of HTML in an ASP file, rather than using response.write methods, you should copy it all out to a HTML file and #include it instead. It's not efficient to have the ASP dll parsing loads of standard HTML.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07