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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Rewritten to remove unnecessary coding?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sandstream71
New Member

Sweden
94 Posts

Posted - 21 August 2002 :  03:31:01  Show Profile  Visit sandstream71's Homepage
From v3.4:
Improved Coding
All files have been rewritten to remove unnecessary coding, convert every possible line to Response.Write syntax, add the new features and improve performance.

Can you give any example of this by showing a couple of old lines and the new ones?

MyForum

Nathan
Help Moderator

USA
7664 Posts

Posted - 21 August 2002 :  04:44:50  Show Profile  Visit Nathan's Homepage
Just open up a file from 3.3.x and file from 3.4.x, you should see the difference. Look at inc_profile.asp

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page

sandstream71
New Member

Sweden
94 Posts

Posted - 21 August 2002 :  05:18:20  Show Profile  Visit sandstream71's Homepage
Okey!

MyForum
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 21 August 2002 :  05:24:32  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
The changes are indeed substantial. It's funny how Snitz looks and acts the same way it always did(just much faster) but under the hood the differences are dramatic.

I just edited admin_config_colors.asp and I can tell you that much of the top processing was gone and replaced by much tighter code. Harder to work with in some ways, much easier in others.

@tomic

SportsBettingAcumen.com
Go to Top of Page

sandstream71
New Member

Sweden
94 Posts

Posted - 21 August 2002 :  05:38:49  Show Profile  Visit sandstream71's Homepage
I always thought that "<%=" was the same thing as Response.write in ASP. Why is Response.Write faster?

MyForum
Go to Top of Page

sandstream71
New Member

Sweden
94 Posts

Posted - 21 August 2002 :  06:46:54  Show Profile  Visit sandstream71's Homepage
I've now found out that there is no difference between "<%=" and Response.Write. The difference is that the ASP-script engine must be called for each response.write so if you include the HTML in the Response.Write you only have to call it one time.

It's possible to make the forum even faster by not using &VbNewLine.
Instead the code could be writen on one line. That would make the code almost impossible to read so it's not realy an option.

MyForum
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 21 August 2002 :  11:42:06  Show Profile
quote:
Originally posted by sandstream71

From v3.4:
Improved Coding
All files have been rewritten to remove unnecessary coding, convert every possible line to Response.Write syntax, add the new features and improve performance.

Can you give any example of this by showing a couple of old lines and the new ones?



When I first read this I was worried I had used the wrong words to say that
Very many examples can be found, and as Nathan said, inc_profile.asp is a very good example.
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 21 August 2002 :  12:11:35  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
& vbNewLine is used to allow for people to read the resulting code. Makes the output much easier to read and to help in finding bugs. It is used instead of & vbCrLf because it is non-system specific where vbCrLf is.

It does not make that big a difference in speed and the readability of the end code more than makes up for it...

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

sandstream71
New Member

Sweden
94 Posts

Posted - 21 August 2002 :  12:15:18  Show Profile  Visit sandstream71's Homepage
Yepp!

Your coding of this forum have made me thinking about doing the same to my ASP-sites. Gonna try to clock some changes and see if it will get the same effect as here (faster!).

MyForum
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 21 August 2002 :  20:12:41  Show Profile  Visit Gremlin's Homepage
Firstly determine what version of IIS your sites are running on sandstream71, if you are running on W2K (IIS5) then I would reccomend against converting it all to response.write but instead to actually get *more* pure HTML into your files.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

sandstream71
New Member

Sweden
94 Posts

Posted - 22 August 2002 :  03:13:24  Show Profile  Visit sandstream71's Homepage
Gremlin: What do you mean with "*more* pure HTML"?

MyForum
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 22 August 2002 :  09:50:00  Show Profile  Visit Gremlin's Homepage
Exactly what I said ... more pure HTML not ASP code as in Response.Write "<HTML>"

Kiwihosting.Net - The Forum Hosting Specialists
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 1.5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07