-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jess,
On 3/11/2011 7:04 AM, Jess Holle wrote: > On 3/11/2011 3:22 AM, Mark Thomas wrote: >> The obvious difference is that Tomcat 6 compilation targets Java 5 >> whereas Tomcat 7 targets Java 6. For a simple test JSP: >> Tomcat 6 (1.5) - 3,488 >> Tomcat 7 (1.5) - 3,530 +1% >> Tomcat 7 (1.6) - 3,668 +6% >> >> The 1% will be a combination of: >> - Tomcat 7 uses version 3.6 of the Eclipse compiler while Tomcat 6 uses >> 3.3.1. >> - the source code differences you can see in the .java files. > Hmm.... > > I tried forcing 1.5 as the source/target version for JspC -- I'm still > over 65K with Tomcat 7. I'm interested in how you were able to do this. The 65k limitation is for a single method, not the entire JSP. Yes, JSPs compile into a single jspService method but when taglibs are used, each use generates its own method which then gets called and each method tends to thin out. Are you using lots of scriptlets and/or /not/ using any tag libraries? Would it be possible to post the source to one of these problematic JSPs? We may have some simple suggestions on how to reduce the size of the generated methods. > I wonder if there's enough extra hidden code generated by use of > generics... Oddly enough, generics are a compiler-only feature in Java. It's basically a giant scam to avoid having to use casts while adding dozens of <Whatevers> to your code rendering it unreadable. Oh, and the compiler complains if you don't specify them, too, which is nice. Anyhow, the presence of generics should not alter a .class file by a single byte. I'd be happy to see a case where it does matter. > Anyway, I guess the page owners will have to try to clean things up. Definitely. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk16oWAACgkQ9CaO5/Lv0PC5OwCfd6kKZaAEqET4/v5mO9trOPe2 RgcAn39Uuim9xl1tbegx42JBeN4lVLdQ =XmCp -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org