Return-Path: Delivered-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Received: (qmail 92730 invoked from network); 21 Sep 2005 10:12:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2005 10:12:10 -0000 Received: (qmail 60978 invoked by uid 500); 21 Sep 2005 10:12:05 -0000 Delivered-To: apmail-xmlgraphics-fop-users-archive@xmlgraphics.apache.org Received: (qmail 60955 invoked by uid 500); 21 Sep 2005 10:12:05 -0000 Mailing-List: contact fop-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-users@xmlgraphics.apache.org Delivered-To: mailing list fop-users@xmlgraphics.apache.org Received: (qmail 60941 invoked by uid 99); 21 Sep 2005 10:12:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2005 03:12:04 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [80.67.18.15] (HELO smtprelay03.ispgateway.de) (80.67.18.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2005 03:12:11 -0700 Received: (qmail 9778 invoked from network); 21 Sep 2005 10:10:41 -0000 Received: from unknown (HELO [192.168.1.2]) (276315@[84.137.57.241]) (envelope-sender ) by smtprelay03.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 21 Sep 2005 10:10:41 -0000 Message-ID: <433131A1.6030406@tzi.de> Date: Wed, 21 Sep 2005 12:10:41 +0200 From: Dirk Bromberg User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 To: fop-users@xmlgraphics.apache.org Subject: Re: problems with times References: <20050921112516.3C21.DEV@jeremias-maerki.ch> <200509211741.43479.mm@arcus.com.au> <20050921115436.3C24.DEV@jeremias-maerki.ch> In-Reply-To: <20050921115436.3C24.DEV@jeremias-maerki.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N To improve the first time i use this http://xml.apache.org/xalan-j/xsltc_usage.html to compile my xsl files when i compile my application. At the runtime there is a jar with the xsl classes and this is what i use at the runtime. So, there are no plain xsl file anymore in my application. Dirk Jeremias Maerki wrote: > On 21.09.2005 11:41:43 Manuel Mall wrote: > > >>>> Transformer transformer = factory >>>> .newTransformer(new StreamSource(xsltfile)); >>>> >>> That's exactly it. You reload the stylesheet every time. If you >>> create a stylesheet cache, you can simply reuse Templates instances. >>> >>> >> Why would cacheing the stylesheet make the first invocation faster? >> > > It doesn't. It just improves overall performance. > > >> The >> original question was about executing a transformation multiple times >> in a loop and why the first invocation takes so much longer than the >> second and by the 3rd execution times becomes stable. I still think >> these time differences are solely JVM/application startup/warmup >> related and have nothing to do with cacheing the stylesheet as that >> would only make subsequent invocations faster. >> > > That's correct. But ALi asked for stylesheet caching, so I gave him a > tip. I assume he won't be against a generally faster solution. :-) > > > > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org