Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 26749 invoked from network); 21 Sep 2000 21:16:25 -0000 Received: from mercury.sun.com (192.9.25.1) by locus.apache.org with SMTP; 21 Sep 2000 21:16:25 -0000 Received: from taller.eng.sun.com ([129.144.252.34]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id OAA04283 for ; Thu, 21 Sep 2000 14:16:20 -0700 (PDT) Received: from eng.sun.com (florence [129.144.251.146]) by taller.eng.sun.com (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id OAA21352 for ; Thu, 21 Sep 2000 14:16:19 -0700 (PDT) Message-ID: <39CA7AD8.FB273EF6@eng.sun.com> Date: Thu, 21 Sep 2000 14:17:12 -0700 From: "Craig R. McClanahan" X-Mailer: Mozilla 4.75 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: Re: Java code generation tomcat JSP's References: <20000921134707.K32519@edamame.stinky.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Alex Chaffee wrote: > > > 3. is there a way to make Tomcat not emit the comments into the generated > > java files? I went thru and stripped out the comments from a couple of the > > files, and they dropped about 130K out of 440K. I know, the comments don't > > affect code size, and the JSP's don't recompile all the time, so this should > > not affect production speed at all, but I do have to recompile the JSPs tons > > of times a day, and anything I can to to shave off a second or two makes me > > happy. > > The comments are useful for debugging, at least theoretically. The help isn't just theoretical. I understand that there are a couple of IDEs (Forte is one) that actually scan those comments and uses them in their JSP debuggers to help you find where the original error is. There is also a Java Specification Request (#45) under way with the goal of supporting a "source line map" concept when non-Java languages are translated into Java and then into class files. JSPs are a prime use case for that kind of thing to be done portably. > Alex Chaffee mailto:alex@jguru.com > Craig ==================== See you at ApacheCon Europe ! Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ Applications to Tomcat