cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Pötz <reinh...@apache.org>
Subject Re: [Cocoon 3] Optimizing resources creation on SAX pipeline components
Date Sat, 30 Jan 2010 12:36:01 GMT
Simone Tripodi wrote:
> Hi Reinhard,
> Thanks for your reply! I wouldn't add a dependency but rather using a
> simple yet powerful ad-hoc implementation based on LinkedhashMap that
> allows realizing a memory based LRU cache, I already provided an
> implementation in Apache Commons Sandbox[1]. If you agree I can start
> adding it and modifying the components.

The question is whether we want this store to become a pluggable
component. In Cocoon 2.x it was configurable but I have never seen
another configuration but using an in-memory store for caching XSLT
templates.

Anyway, I suggest that you start with the implementation and we discuss
configuration issues afterwards.

> About making the mentioned components as CachingPipelineComponent: do
> you have any hint you can suggest to me please? I'd more than pleased to
> working on it!

See the org.apache.cocoon.transformation.TraxTransformer in Cocoon 2.2
and the implementation of getKey() and getValidity().
The tricky thing is that an XSLT stylesheet can have imports and
includes that can change too.

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

Mime
View raw message