cocoon-dev mailing list archives

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

as promised: here is the second patch.

Included is the original XMLCompiler from Stefano (xmlcompiler.zip)
and a patch for the FileGenerator to use the XMLCompiler (diff.zip).

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
data.

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

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

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...


Carsten

Mime
View raw message