Bug 43742 - .tag compiles performed one at a time -- extremely slow
Summary: .tag compiles performed one at a time -- extremely slow
Status: RESOLVED WONTFIX
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 6.0.9
Hardware: Other other
: P3 enhancement with 1 vote (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-30 21:18 UTC by Anthony Berglas
Modified: 2016-02-07 19:51 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.