VBScript strings (was Re: [thelist] DBA survey)

Norman Beresford n.beresford at anansi.co.uk
Thu Mar 8 02:43:58 CST 2001


Hi all

Thanks for that tip Ryan. I was wondering if anyone else found this as I
know that everything I've read has suggested the opposite, and that it's
best to use a single Response.write call.  It's going to be a bit of a pig
if it is as I've optimised all of the code I've produced to have only a
single response.write call.

If it is true what is the optimal string length to write, ie performance hit
of visit to the response object vs memory useage for the strings?  Best not
to concateener at all?

Norman


> <tip>
> When concatenating strings in VBScript, be sure to use "Response.Write"
with
> reckless abandon...VBScript is horribly bad at handling string memory.
The
> longer the string, the higher the performance hit when concatenating.  I
> received a 10x performance boost when I simply wrote out the string while
> processing, instead of at the end.
> </tip>






More information about the thelist mailing list