W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2011

Re: Integrating Calabash in a Web application

From: Florent Georges <fgeorges@fgeorges.org>
Date: Wed, 9 Feb 2011 00:30:44 +0100
Message-ID: <AANLkTinp89TWv1=gYTD98M9dO+fw39=6KSB0=F=ktZSz@mail.gmail.com>
To: Alam Sher <alam.sher@advoss.com>
Cc: XProc Dev <xproc-dev@w3.org>
On 9 February 2011 00:06, Alam Sher wrote:


> Also I would like to cache each pipeline in a way that I don't
> have to initiate it again and again and just execute it with the input
> document in source port.

  Of course, Norm will give you more accurate answers, but from
my own experience, the short answer is no.  This is because
XPipeline is both the compiled form and the runtime object.  So
theoretically, you can reset the object and reuse it, but within
a multithreaded environment, you will have to create a pool of
pipelines and be sure threads wait for an available pipeline as
well as enforcing reseting the pipeline after use.

  In Servlex <http://code.google.com/p/servlex/>, I then chose
not to cache pipelines (though I properly cache stylesheets and
queries).  You can have a look at the class XProcPipeline[1] in
Servlex's trunk if you want to see a real example.


Florent Georges

Received on Tuesday, 8 February 2011 23:31:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:08 UTC