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

Re: Memory usage

From: Nic Gibson <nicg@corbas.net>
Date: Mon, 10 May 2010 08:56:59 +0000
To: Toman_Vojtech@emc.com
Cc: xproc-dev@w3.org
Message-ID: <20100510085659.GC20568@magpie.corbas.net>
On Mon, May 10, 2010 at 04:38:52AM -0400, Toman_Vojtech@emc.com wrote:
> > Norm..  just wondering does p:sink call that saxon:discard-document()
> > function in calabash?
> 
> I don't think that it does... or even that it can: p:sink just tells the
> XProc processor that the result of an XProc step is not used in a
> certain place in the pipeline, but it may be used elsewhere:
> 
> <p:xslt name="transform">...</p:xslt>
> <p:sink/>
> <p:identity>
>   <p:input port="source">
>     <p:pipe step="transform" port="result">
>   </p:input>
> </p:identity>
> 
> The above is a perfectly correct pipeline that first "sinks" the result
> of p:xslt and then processes it using p:identity. In XProc, p:sink is
> just a tool for providing a simple "do nothing" connection to output
> ports of steps. In most cases, it does not discard anything; it only
> interrupts the default data flow in the pipeline.
> 
> The necessary condition for releasing data produced by a step from
> memory should be that *nothing* is connected to the output port of the
> step; just p:sink'ing the output port may not be sufficient.
> 
> Regards,
> Vojtech

That's pretty well as far as I had worked out - whilst the memory problem
I've been seeing is *irritating*, it can't really be described as simply
wrong (complexly wrong perhaps) because there is nothing simple that can
be used to determine if a file loaded using p:load can be discarded. 

nic
> --
> Vojtech Toman
> Principal Software Engineer
> EMC Corporation
> toman_vojtech@emc.com
> http://developer.emc.com/xmltech
> 
Received on Monday, 10 May 2010 08:59:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 10 May 2010 08:59:05 GMT