From dev-return-98878-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Tue Mar 25 11:03:33 2008 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 60196 invoked from network); 25 Mar 2008 11:03:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Mar 2008 11:03:33 -0000 Received: (qmail 67977 invoked by uid 500); 25 Mar 2008 11:03:27 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 67921 invoked by uid 500); 25 Mar 2008 11:03:27 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 67848 invoked by uid 99); 25 Mar 2008 11:03:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 04:03:26 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 25 Mar 2008 11:02:44 +0000 Received: (qmail 59979 invoked from network); 25 Mar 2008 11:03:03 -0000 Received: from localhost (HELO carsten-ziegelers-computer.local) (127.0.0.1) by localhost with SMTP; 25 Mar 2008 11:03:03 -0000 Message-ID: <47E8DBE7.30500@apache.org> Date: Tue, 25 Mar 2008 12:03:03 +0100 From: Carsten Ziegeler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Compiled vs. Interpreted Sitemap Engine (Cocoon 2.0.4) References: <47E7E55E.8010503@o-ms.com> In-Reply-To: <47E7E55E.8010503@o-ms.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Robert La Ferla wrote: > I am using Cocoon 2.0.4. Can someone please explain why the interpreted > sitemap engine is faster than the compiled one? Also, is it the "class" > attribute that determines whether Cocoon is using the compiled vs. the > interpreted sitemap engine? Seems like if you omit the class attribute, > it should use the interpreted engine but if you specify > class="org.apache.cocoon.sitemap.SitemapManager", it uses the compiled > engine?? > The term "interpreted" is a little bit missleading as the sitemap xml is not read on each access. On the first access the sitemap is read and a object representation is created in memory which is used for subsequent requests. This approach is way faster than the compiled one which relies on heavy xslt transformations etc. The interpreted sitemap has also been optimized, so you should try to use the interpreted one. Please also note that starting with 2.1 the compiled sitemap has been removed. The class attribute on the sitemap element specifies the implementation of the sitemap. Without a class attribute the interpreted is used as this is the default for the class attribute. By specifying a different value a different implementation (like the compiled one) can be used. HTH Carsten -- Carsten Ziegeler cziegeler@apache.org