Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 82343 invoked from network); 9 May 2005 12:16:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 May 2005 12:16:37 -0000 Received: (qmail 22571 invoked by uid 500); 9 May 2005 12:19:19 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 22558 invoked by uid 500); 9 May 2005 12:19:18 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 22543 invoked by uid 99); 9 May 2005 12:19:18 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from smtp-vbr12.xs4all.nl (HELO smtp-vbr12.xs4all.nl) (194.109.24.32) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 09 May 2005 05:19:18 -0700 Received: from [10.0.0.153] (daigeert.xs4all.nl [80.127.22.250]) (authenticated bits=0) by smtp-vbr12.xs4all.nl (8.12.11/8.12.11) with ESMTP id j49CG2qq003619 for ; Mon, 9 May 2005 14:16:02 +0200 (CEST) (envelope-from Geert.Josten@daidalos.nl) Message-ID: <427F5482.5040101@daidalos.nl> Date: Mon, 09 May 2005 14:16:02 +0200 From: Geert Josten Organization: Daidalos BV User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Cinclude transforms very *slow* [ was Re: Speeding up an xinclude transform?] References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi there, I saw someone make a remark on the xpointer/xpath expression, but never saw a response to it. Have you tried changing the // in //inml:ind/meta to a precise path? Or is that impossible? And how ofter does that element occur? Would it be sufficient to stop after the first occurrence of inml:ind or meta? You might want to use something like: /root-elem[1]/sub-elem1[1]/sub2[3]/sub3[2]/inml:ind[meta][1]/meta[1] I can't oversee whether your problem has to do with caching or not. But I've been processing 1500+ files from filesystem using Cocoon, filtering, selecting, merging and converting them all together. And though the first call is slow, subsequest requests are fast. I know for sure that // is a performance killer, so I think it is worth investigating.. Cheers, Geert Derek Hohls wrote: > Chris > > Yes... the CInclude transformer output isn't cached, and I have > found that the approach you suggested is only marginally faster > than using the xinclude approach I had adopted originally. > > I guess that working with information from numerous XML files > on disc is not really a viable operation using Cocoon... which is, > I think, a pity. > > In my case its impossible to predict when content can be changed... > could be a whole lot of changes in a few minutes, and then > nothing for a few months. This makes it very hard to simply set > a time parameter as suggested in the documents. There needs to > be something a little more straightforward than that to make it > usable/useful. > > Any more thoughts? > > Derek > > >>>>cocoon@chrismaloney.com 2005/05/07 04:17:27 AM >>> > > I misspoke in my last email (actually, mis-wrote :) > The CInclude transformer output isn't, by default, cached, but the > input > to it, "cocoon:/101.meta.xml", below, would be. In your case, where > you > have fifty or so inputs of that form, that's what you'd want. However, > > you can also get the CInclude transformer to cache its output, as > described here: > http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-transformer.html#Caching > > > I agree when you said "surely its Cocoon's "job" to check ....", but > I've gotten myself into a bit of a mess, with lots of these cached > pipeline fragments daisy-chained. I've also implemented "preemptive > caching" on some of them, and now I just haven't spent the time to dig > > in and see where the cache isn't getting properly invalidated. > > Cheers! > > Derek Hohls wrote: > > >>Chris(?) >> >>Thanks - I will give this a try (cannot be slower than what I have >>now and looks pretty straightforward). It had not occurred to me >>because it seemed this would require 50+ calls to the same >>pipeline.. instead of just one pass through one... but I'll check. >> >>Re the caching - surely its Cocoon's "job" to check the files >>being used (if they are static, as in this case) and send through >>the latest version... but I will run some tests and see what occurs. >> >>Thanks >>Derek >> >> >> >> >>>>>cocoon@chrismaloney.com 2005/05/06 02:44:53 PM >>> >>>>> >>>>> >> >>Is the XPath expression the same in every case ("//inml:ind/meta")? >>If so, then it would be easy to switch to using CInclude, which is >>cached: >> >> >> >> >> >>And then define a new pipeline to produce 101.meta.xml: >> >> >> >> >> >> >> >>I'm pretty new to Cocoon, actually, and I've been using this > > technique > >>a >>lot, >>for example, to generate my nav bar. I'm not altogether happy with > > it, > >>though, >>mainly because I can't figure out how to control the cache -- i.e. to > > >>make sure >>that it gets invalidated whenever {1}.xml changes. But, it's pretty >>fast. >> >> >>Derek Hohls wrote: >> >> >> >> >>>I am looking to find a way to speed up a key step in a pipeline: >>> >>>The one in question has the following steps: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>The pipeline is fast up to the end of the first transform, >>>resulting in XML which contains a number of tags of >>>the form: >>> >>> >>>>>href="inds/101.xml#xmlns(inml=http://www.myschema.com)xpointer(//inml:ind/meta)"/> >>> >>> >>>The number of tags varies by directory, but is typically about 50. >>>The files themselves are small - about 50k - and the "meta" >>>tags have only a few bytes of text. >>> >>>However, this last step takes over a minute! on a fast server >>>(2Gb memory, 3Ghz processor)... >>> >>>What can I do to ensure that this is speeded up significantly...? >>>ie at least a factor of 10! >>> >>>Thanks >>>Derek >>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >>>For additional commands, e-mail: users-help@cocoon.apache.org >>> >>> >>> >>> >>> >>> >>> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >>For additional commands, e-mail: users-help@cocoon.apache.org >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >>For additional commands, e-mail: users-help@cocoon.apache.org >> >> >> >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > > -- ===================================== NB: het Daidalos kantoor is sinds 22 april jl. gevestigd op een nieuw adres: Daidalos BV Hoekeindsehof 1 - 4 2665 JZ Bleiswijk tel: +31 (0)10 850 12 00 fax: +31 (0)10 850 11 99 Bovenstaand adres is tevens het postadres. ====================== Geert.Josten@Daidalos.nl IT-consultant at Daidalos BV http://www.daidalos.nl/ GPG: 1024D/12DEBB50 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org