W3C home > Mailing lists > Public > xproc-dev@w3.org > November 2010

Re: Calabash: cache the compiled pipeline

From: Edwin de Jong <e.dejong@exxellence.nl>
Date: Thu, 18 Nov 2010 12:04:10 +0100
Message-ID: <4CE5082A.1060102@exxellence.nl>
To: Florent Georges <fgeorges@fgeorges.org>
CC: XProc Dev <xproc-dev@w3.org>
Op 18-11-2010 11:39, Florent Georges schreef:
> On 17 November 2010 13:12, Edwin de Jong wrote:
>> I chose a wrapper class, wrapping com.xmlcalabash.core.XProcRuntime,
>> adding references to the cached pipelines (XPipeline
>> objects).
>    I don't quite understand.  XPipeline is the object you set the
> input on, and you read the output from (besides passing options
> to, etc.)  How can you cache such objects?  How do you reset
> them? (e.g. when you have to set some input ports)
Perhaps my explanation was a bit pithy. Before reusing a pipeline, I 
call pipeline.reset() and pipeline.clearInputs("source"). Then the 
pipeline is back to its original state and can be used for another 
request. pipeline.reset() is recursively applied to all referenced 
pipelines.

Regards,

Edwin de Jong




Met vriendelijke groet,

Edwin de Jong


Exxellence Group | www.exxellence.nl
Bezoekadres: Welbergweg 80-84 | 7556 PE Hengelo (ov.)
Postadres: Postbus 768 | 7550 AT Hengelo (ov.)
Tel. +31 (74) 25 94 008 | fax. +31 (74) 25 66 424
Received on Thursday, 18 November 2010 11:05:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 18 November 2010 11:05:00 GMT