Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Performance

Status
Not open for further replies.

smbure

Programmer
Mar 30, 2001
47
US
I have seen Microsoft Articles and VB articles referring to ASP and/or VB string concatenation as very slow compared to usng the response.write method.

SLOW:
var = var & "stuff"
response.write var

FAST:
response.write var

This is true.

I have done some large recordset performnce testing on the write method vs. string continuation/concatenation and found unexpected results (10000 records).

'rsStuff is a recordset

SLOW:
Response.write "stuff"
Response.write rsStuff
Response.write "more stuff"

FAST:
Response.write "stuff" & rsStuff & "more stuff"

What's the gig?

smbure

App Background: The application is actually writing xml stings in an asp document called by a client side xmldoc. The need to build the xml was because we are using SQL Server 6.5 still...ouch!!
 
One last clarification, those methods are wrapped in a while wend loop and iterates through the recordset...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top