cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Knodt <>
Subject Re: Caching in cocoon, especially CIncludeTransformer
Date Mon, 02 Jun 2003 10:53:39 GMT
On Sunday 01 June 2003 15:47, Carsten Ziegeler wrote:
CZ> There is already such a component, the cinclude transformer uses this
CZ> for the caching. It should be easy to use that component in the
CZ> xinclude transformer as well.
Yes, I know. But it'S still to much coding for it in the CIncludeTransformer. 
Components which need the content of a source, should simply get it, and not 
think about caching. It's not their job. Caching is needed in to many places. 
All places which use sources, should have caching. It should only be done at 
one place for each kind of data.
So what I suggest is introducing SourceUtil.getInputStream for InputStream's 
of sources. Then modify toDOM and toSAX to cache their output, to not have 
them to parse them first out of the cached InputStream's. So we would cache 
InputStream's, DOM's and SAX streams. The only changes in the components 
would be to use SourceUtil, where they currently use their own code.

CZ> PS: Could you please not include the PGP signature in your posts to
CZ> this list. It makes reading your mails very hard. Thanks.

Domain in provider transition, hope for smoothness. Planed date is 1.7.2003.

View raw message