Bruce Lee wrote:
> Just curious to what is the best performing way of writing dynamic content
> out. Is it :
> -build content in a string buffer
> -out.println(stringbuffer.toString())
>
> If there's a task underway that may take a few seconds is it a good idea to
> print out something straight away - like the top of the page 1st - then
> write out the body which is in the StringBuffer?
>
>
In my opinion buffered looks better, but it all depends. If it's only
the last 10% that is delayed/slow, the user might get the wrong
impression that the page is fully loaded when it's only 90% loaded.
--
jon martin solaas
|