Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 30264 invoked from network); 26 Jan 2001 15:24:14 -0000 Received: from mercurio.pisa.iol.it (193.76.233.145) by h31.sny.collab.net with SMTP; 26 Jan 2001 15:24:14 -0000 Received: from spinetti ([193.76.233.91]) by mercurio.pisa.iol.it (Netscape Messaging Server 3.6) with SMTP id AAA31AC for ; Fri, 26 Jan 2001 16:29:24 +0100 Message-ID: <003901c087ab$7e530020$5be94cc1@pisa.iol.it> From: "Marco Spinetti" To: References: Subject: R: PERFORMANCE PROBLEM! (for Donald) Date: Fri, 26 Jan 2001 16:20:19 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi Donald, excuse me but I think I have not understood. Do you advise me to implement a HasChange method in my Xsp page and add my Xsl file the code you have sent me? But doing so I add a Xsp transformation to my Xsl file which there was before not. Very probably I have not understood: can you better explain it to me? Regards Marco m.spinetti@pisa.iol.it ----- Original Message ----- From: Donald Ball To: Sent: Thursday, January 25, 2001 9:19 PM Subject: Re: PERFORMANCE PROBLEM! > On Thu, 25 Jan 2001, Marco Spinetti wrote: > > > Hi all, my question is how I can increase my system performances. I > > have built a multiterminal Xml portal based on Cocoon: in the service > > of meteo forecasts for every request my system uses 1,6 second: using > > the Profiler.xml file I found out that this time is so subdivided: > > > > 36 ms (org-apache-cocoon-producer-ProducerFromFile) > > 408 ms (org.apache.cocoon.processor.xsp.XSPProcessor) > > 938 ms (org.apache.cocoon.processor.xslt.XSLTProcessor-1) > > 247 ms (org-apache-cocoon-formatter-HTMLFormatter) > > 54 ms (Outputting) > > you can eliminate almost all of this time by having your xsp pages > implement a hasChanged method. i use this template in my main > site-specific logicsheet to seamlessly add one to all of my xsp pages: > > > > > > static long last_changed_millis = 0; > static final long MILLISECONDS_TO_CACHE = 5*60*1000; > > public boolean hasChanged(Object context) { > long current_millis = System.currentTimeMillis(); > if (current_millis - MILLISECONDS_TO_CACHE > last_changed_millis) { > last_changed_millis = current_millis; > return true; > } else { > return false; > } > } > > > > > this causes xsp output to cache for a five minutes at a time. it gave me a > speedup of over an order of magnitude. > > - donald > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > >