Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 15255 invoked from network); 3 Oct 2005 15:02:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Oct 2005 15:02:58 -0000 Received: (qmail 65986 invoked by uid 500); 3 Oct 2005 15:02:53 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 65902 invoked by uid 500); 3 Oct 2005 15:02:53 -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 65880 invoked by uid 99); 3 Oct 2005 15:02:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2005 08:02:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [84.96.21.10] (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2005 08:02:57 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 197D033563 for ; Mon, 3 Oct 2005 17:02:31 +0200 (CEST) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10726-08 for ; Mon, 3 Oct 2005 17:02:25 +0200 (CEST) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id 0439133564 for ; Mon, 3 Oct 2005 17:02:25 +0200 (CEST) Message-ID: <434147FF.5050404@apache.org> Date: Mon, 03 Oct 2005 17:02:23 +0200 From: Sylvain Wallez User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Lazy mode (was Re: [RT] Is Cocoon Obsolete?) References: <433DB4B5.8070703@apache.org> <433FBE68.2000507@nada.kth.se> <434121AE.6010507@apache.org> <43413CEE.1080204@d-haven.org> In-Reply-To: <43413CEE.1080204@d-haven.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Berin Loritsch wrote: > Sylvain Wallez wrote: > >> Kewl! If it's based on the 2.2 branch, you may reduce startup time by >> adding JAVA_OPTIONS="-Dorg.apache.cocoon.core.LazyMode=true" in the >> launch script (BTW, should we make this the default?) > > > > IMO Yes. Anything that helps us work more efficiently should be default. Agree, but on the other hand, this lazy-loading of components mean that some buggy declarations will not be detected at startup time, which would be better in a production environment. This leads again to the discussion about "running modes" [1] where some developer-oriented features (e.g. lazy startup, cocoon stacktraces on screen, client-side alerts in Ajax libraries) would only be enabled in development mode. IIRC, ruby on rails has this kind of modes too. Now, considering how many things are loaded at runtime in Cocoon (sitemaps, XSLs, templates, etc), we can just consider that components are just yet another thing loaded at runtime and set lazy mode as the default one. Thoughts, especially about running modes? Sylvain [1] http://marc.theaimsgroup.com/?t=103175550100002&r=1&w=2 -- Sylvain Wallez Anyware Technologies http://people.apache.org/~sylvain http://www.anyware-tech.com Apache Software Foundation Member Research & Technology Director