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

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?

Thanks,
_________
Alam Sher

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