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

RE: Memory usage

From: <Toman_Vojtech@emc.com>
Date: Mon, 10 May 2010 04:38:52 -0400
Message-ID: <997C307BEB90984EBE935699389EC41C0165362B@CORPUSMX70C.corp.emc.com>
To: <xproc-dev@w3.org>
> 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:input port="source">
    <p:pipe step="transform" port="result">

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.


Vojtech Toman
Principal Software Engineer
EMC Corporation
Received on Monday, 10 May 2010 08:39:47 UTC

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