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

Calabash p:import and p:library could be slow?

From: Alam Sher <alamsher83@gmail.com>
Date: Sat, 10 Sep 2011 13:42:32 +0500
Message-ID: <CAAb4RvXbSC4xOvE5e-bisABjAXbrWrvHKbMwjYqEDg60JEbhfw@mail.gmail.com>
To: xproc-dev@w3.org
I'm writing some long in fact very long XProc pipelines/workflows.

Writing long pipelines often introduce a concept to encapsulate re-usable
steps in p:library where I could write steps as adapters (with
options/parameters) to original steps. This makes the original pipeline
clean and more readable.

However as I see the calabash code, I assume for every p:import if p:library
is encountered, whole library is fetched/parsed and lets say if I'm writing
a main pipeline that only contains two of the declared steps in p:library
calabash will still parse the whole XML structure and read/load step bodies
even if those are not going to be used in the main pipeline.

Please correct me If I'm wrong. Also please suggest if there is any better
strategy, or only the faster executing pipelines are going to be those which
don't import huge library adapters?

Alam Sher
Received on Thursday, 15 September 2011 07:20:06 UTC

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