Bug 43742

Summary: .tag compiles performed one at a time -- extremely slow
Product: Tomcat 6 Reporter: Anthony Berglas <aberglas>
Component: JasperAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: andrewlanecarr
Priority: P3    
Version: 6.0.9   
Target Milestone: default   
Hardware: Other   
OS: other   

Description Anthony Berglas 2007-10-30 21:18:28 UTC
Jasper is *extremely* slow at compiling .tag files packaged in a .jar -- tens 
of seconds per JSP.

One cause is that the javac compiles are very slow, despite there being 
relatively little java code to compile.  (About 60% of total time.)  This is 
probably because the compiler is being invoked once for each .tag, rather than 
just once for all the generated .java files.  If they could be batched up and 
compiled at the end I suspect there would be a huge improvement.

(All of Tomcat/Jasper takes less time to javac on my machine than running up 
one .jsp that includes a lot of .tags.)
Comment 1 Mark Thomas 2008-01-07 15:43:53 UTC
I've no doubt this could be better.

The fix for bug43878 may offer some improvements when not using development mode.

Improving this further is likely to require fairly major changes to Jasper so I
am marking this as an enhancement.

If you (or anyone else) feels the urge to scratch this itch then patches (in
diff -u format) are always welcome.
Comment 2 Mark Thomas 2016-02-07 19:51:53 UTC
No further interest in this. Pre-compilation is the obvious solution here.