You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Marius Botha <ma...@workpool.co.za> on 2005/08/05 15:02:46 UTC

Response in Firefox vs IE

Ok, seeing as no one wants to answer my "Tips for improving performance and
optimizing tags" question, let me try something else :)

I have a JSP containing some tags that I developed. It displays quite a lot
of content (couple of hundred rows of data, about 160KB of text). I have
timed the various stages of the response and it takes about 2 sec to get all
the info from the database, then about 2 sec to go through the tags, build
the HTML, etc. But from the moment this is done and the last line of the JSP
has executed it still takes a couple of seconds to display in the browser.
In Firefox at least I get a couple of lines immediately once the page has
finished executing, but in IE it takes another 5 seconds after everything
has completed before I see any data.

Is there maybe a way one can flush data to the browser earlier on, or is
this an IE problem? Putting flush in the JSP also makes no difference, this
time lapse happens after the page has finished executing. It looks like it
is buffering the response and only writing it out once it has received all
the data.

Hope that makes sense and someone can give some constructive advice.

Kind regards,

Marius Botha


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: Response in Firefox vs IE

Posted by David Schwartz <ds...@arrayone.com>.
Is the data being displayed in a <table>?
If yes, the browser will render the entire table in memory before displaying it.

Quoting Marius Botha <ma...@workpool.co.za>:

>> Ok, seeing as no one wants to answer my "Tips for improving performance and
>> optimizing tags" question, let me try something else :)
>>
>> I have a JSP containing some tags that I developed. It displays quite a lot
>> of content (couple of hundred rows of data, about 160KB of text). I have
>> timed the various stages of the response and it takes about 2 sec to get all
>> the info from the database, then about 2 sec to go through the tags, build
>> the HTML, etc. But from the moment this is done and the last line of the JSP
>> has executed it still takes a couple of seconds to display in the browser.
>> In Firefox at least I get a couple of lines immediately once the page has
>> finished executing, but in IE it takes another 5 seconds after everything
>> has completed before I see any data.
>>
>> Is there maybe a way one can flush data to the browser earlier on, or is
>> this an IE problem? Putting flush in the JSP also makes no difference, this
>> time lapse happens after the page has finished executing. It looks like it
>> is buffering the response and only writing it out once it has received all
>> the data.
>>
>> Hope that makes sense and someone can give some constructive advice.
>>
>> Kind regards,
>>
>> Marius Botha
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>>
>>


David Schwartz
Array Software Inc.
http://www.arrayone.com

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: Response in Firefox vs IE

Posted by Martin Cooper <mf...@gmail.com>.
On 8/5/05, Marius Botha <ma...@workpool.co.za> wrote:
> Ok, seeing as no one wants to answer my "Tips for improving performance and
> optimizing tags" question, let me try something else :)
> 
> I have a JSP containing some tags that I developed. It displays quite a lot
> of content (couple of hundred rows of data, about 160KB of text). I have
> timed the various stages of the response and it takes about 2 sec to get all
> the info from the database, then about 2 sec to go through the tags, build
> the HTML, etc. But from the moment this is done and the last line of the JSP
> has executed it still takes a couple of seconds to display in the browser.
> In Firefox at least I get a couple of lines immediately once the page has
> finished executing, but in IE it takes another 5 seconds after everything
> has completed before I see any data.
> 
> Is there maybe a way one can flush data to the browser earlier on, or is
> this an IE problem? Putting flush in the JSP also makes no difference, this
> time lapse happens after the page has finished executing. It looks like it
> is buffering the response and only writing it out once it has received all
> the data.
> 
> Hope that makes sense and someone can give some constructive advice.

The first thing that strikes me is how amazingly slow each of these
steps is for just a couple of hundred rows! That suggests either slow
hardware or lots of opportunity to speed things up. ;-)

I won't try to help you optimise your database query - at least not on
this list - but that has to be possible too, unless it's horribly
complicated. Going from the result set to rendered HTML should be fast
too, unless you're doing a lot of computation along the way, but you
don't say what's involved there, so it's hard to tell what would
improve it. Finally, the browser rendering performance depends a great
deal on how you've structured your HTML, which again you haven't
actually told us about.

So basically, we're going to need more details to be of any help. ;-)

--
Martin Cooper


> Kind regards,
> 
> Marius Botha
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org