On Wed, 21 Aug 2002, Vadim Gritsenko wrote:

> [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to