tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <r...@apache.org>
Subject [5.0] JSP performance ...
Date Sun, 07 Sep 2003 13:49:28 GMT
... is not as good as it should be. I found a benchmark where TC is 
currently not too good. The problem occurs when dealing with lots of 
strings.

I'm attaching the benchmark, the code generated by TC, and the code 
generated by Resin. Resin String handling tricks ends with it making 
about half the amount of writes, and writing char arrays instead of 
Strings. I believe this is faster :-D

While the benchmark is quite lame, I believe a lot of pages have similar 
amounts of interleaved static HTML, so optimizing this would give a 
healthy performance increase. (Note: I did a quick review with a 
profiler, and all the CPU time is spent in the _jspService method body, 
using a compiled JSP, so the performance overhead is in the generated 
code for this particular test)

(I found this while looking for optimization ideas)

Can we get the same kind of stuff ? Kin-Man, Jan, others ?

Remy


Mime
View raw message