home navigator pointer resources navigator pointer asp tips navigator pointer buffering output for speed
The definitive ASP tips page
tips menu | printable single page version

Note: this is my old ASP tips page and is no longer supported. See the new Visualize web site..

ASP Coding for Performance - Buffering output for speed

Consider buffering the output generated from an ASP page by using response.buffer = true. HTTP and TCP/IP work much more efficiently when sending decent sized chunks of data. Sending tiny chunks is hence expensive.

Having said that, if the page is quite large and buffering is on, the end-user may think the page is responding poorly as they will not see any output in the browser until the page has finished. If this is relevant to your page, do a response.flush to flush the buffer every so often, at appropriate points in the code, to provide some feedback to the user on page progress.

 

DISCLAIMER: Note these pages are a free resource for anyone wishing to reference them. Although every care is taken to ensure their correctness, the author takes no responsibility for any errors or problems that may occur through their use, or indeed misuse. These pages are copyight of Dave Clarke, Visualize Software Ltd 1997-2000 (all rights reserved).


 


© Copyright Dave Clarke, 1996-2012