>
> Is the performance between SAXON and SAXON with Precompiled
> XSLTs (that are cached as welll), that significant of a
> difference in memory and CPU?
By "precompiled" here I assume you mean reusing the Templates object (of
which PreparedStylesheet is the Saxon implementation) - and not the facility
to serialize the Template object to disk.
If you use the -t flag on the command line you can see how much time is
spent compiling the stylesheet and how much time is spent running the
transformation. For a complex stylesheet applied to a small document,
compiling can cost 10 times as much as running. For a simple stylesheet
applied to a large document, the ratio is likely to be the other way around.
However, although the gain from doing so varies depending on workload, it's
always worth reusing the compiled stylesheet if you can.
Michael Kay
Saxonica
|