You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@sundn.de> on 2001/01/18 09:08:07 UTC

C2: Patch for XalanTransformer

Hi,

attached is the first promised patch for using the store. 

The XalanTransformer now uses the store and not a 
static variable to store the stylesheets.

Carsten

AW: C2: Patch for FileGenerator and XMLCompiler

Posted by Carsten Ziegeler <cz...@sundn.de>.
> Um. Not wishing to be a pedant, but a 'Multiplexer' is something which
> squeezes multiple streams of communication into one, either by time or
> frequency division. May be better to call it 'Multicaster'.
> 
Yes, I agree, you are right...perhaps I really should take some time to learn english....

Feel free to change the name.

Carsten


Re: C2: Patch for FileGenerator and XMLCompiler

Posted by Paul Russell <pa...@luminas.co.uk>.
* Carsten Ziegeler (cziegeler@sundn.de) wrote :
> 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...

Um. Not wishing to be a pedant, but a 'Multiplexer' is something which
squeezes multiple streams of communication into one, either by time or
frequency division. May be better to call it 'Multicaster'.


P.

-- 
Paul Russell                                 Email:   paul@luminas.co.uk
Technical Director                             Tel:  +44 (0)20 8553 6622
Luminas Internet Applications                  Fax:  +44 (0)870 28 47489
This is not an official statement or order.    Web:    www.luminas.co.uk

Re: C2: NEW Patch for FileGenerator and XMLCompiler

Posted by Paul Russell <pa...@luminas.co.uk>.
* Carsten Ziegeler (cziegeler@sundn.de) wrote :
> Hi,
> 
> this is the same patch as some hours ago, but I renamed
> the XMLMultiplexer to XMLMulticaster (thanks to Paul)
> and fixed a bug in the XMLCompiler. Apologies for this.

Thanks Carsten,

I'll try and apply it a bit later, but I don't have any official Cocoon
time until this evening (UTC)..


Paul.

-- 
Paul Russell                                 Email:   paul@luminas.co.uk
Technical Director                             Tel:  +44 (0)20 8553 6622
Luminas Internet Applications                  Fax:  +44 (0)870 28 47489
This is not an official statement or order.    Web:    www.luminas.co.uk

C2: NEW Patch for FileGenerator and XMLCompiler

Posted by Carsten Ziegeler <cz...@sundn.de>.
Hi,

this is the same patch as some hours ago, but I renamed
the XMLMultiplexer to XMLMulticaster (thanks to Paul)
and fixed a bug in the XMLCompiler. Apologies for this.


Carsten

C2: Patch for FileGenerator and XMLCompiler

Posted by Carsten Ziegeler <cz...@sundn.de>.
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