cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject C2: Patch for FileGenerator and XMLCompiler
Date Fri, 19 Jan 2001 09:33:59 GMT

as promised: here is the second patch.

Included is the original XMLCompiler from Stefano (
and a patch for the FileGenerator to use the XMLCompiler (

The FileGenerator stores (if configured to do so) each parsed
local XML file and retrieves it the next time it is requested
from the store.
The file modification date is used to invalidate the stored

The generator can have a default configuration:
<map:generator ....>
	<use-store map:value="true"/>
The default is "false".

Each pipeline can override this behaviour:
<map:generate type="file" src="...">
	<parameter name="use-store" value="false"/>

I did some very quick tests for performance. The whole pipeline processing
increased with the processor depending on the load of the server between
10% and 30%. As the parsing of XML is only one step in the pipeline
the performance win is higher than that.

The FileGenerator uses a new class XMLMultiplexer which can send SAXEvents
to many ContentHandler. This class might also be useful for other purposes,
e.g. caching...


View raw message