Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 31405 invoked by uid 500); 22 Aug 2002 13:57:03 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 31393 invoked from network); 22 Aug 2002 13:57:02 -0000 X-Authentication-Warning: vern.chem.tu-berlin.de: stephan owned process doing -bs Date: Thu, 22 Aug 2002 15:57:01 +0200 (CEST) From: Stephan Michels X-X-Sender: stephan@vern.chem.tu-berlin.de To: cocoon-dev Subject: Re: cvs commit: xml-cocoon2/src/scratchpad/src/org/apache/cocoon/generation SourceDescriptionGenerator.java In-Reply-To: <3D63BB32.4060309@verizon.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 21 Aug 2002, Vadim Gritsenko wrote: > stephan@apache.org wrote: > > >stephan 2002/08/21 08:35:47 > > > > Modified: src/scratchpad/src/org/apache/cocoon/generation > > SourceDescriptionGenerator.java > > Log: > > Reduce Source lookup's. > > > ... > > > public class SourceDescriptionGenerator extends ComposerGenerator > > - implements CacheableProcessingComponent{ > > + implements CacheableProcessingComponent, Recyclable { > > > ... > > > + /** Traversed source for the keys and validities */ > > + private Hashtable cachedsources = null; > > > > Stephan, > > You will end up with one or *more* *pools* of *hashtables*. Are you sure > you want to cache this way? Thank you for the hint, I was just profiling my application, and noticed that with modified XMLFileDescriptorStore every request need 1200 ms, and that with a full cacheable pipeline. After solving a problem with the cache of XMLFileDescriptorStore I went into <100ms. Ps. I don't want to cache the Sources within the Generator, but the current SourceResolver doesn't handle pools of Sources. Stephan. --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org