Re: [xsl] Unix Philosophy Applied to XSLT Development

Subject: Re: [xsl] Unix Philosophy Applied to XSLT Development
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 23 Jul 2022 17:06:37 -0000
If these are simple transformations run directly from the command line using a
Java XSLT processor, then it's quite likely that each step in the pipeline is
taking:

2000ms Java VM warm-up time
 300ms XSLT compile time
 100ms XML parsing time for source document
   10ms XSLT transformation time
   90ms Serialization time

Total 2500ms, which can be cut down to 10ms if you adopt a more efficient
execution platform -- without changing a line of code.

Michael Kay
Saxonica

> On 23 Jul 2022, at 16:17, Norm Tovey-Walsh ndw@xxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>> To recap: Identify general tools. Implement the tools. Use the tools
>> to solve many problems, not just one specific problem. Arrange the
>> tools in any order.
>
> Therebs a certain elegant simplicity to running everything through pipes
> on the Unix command line, but be aware that youbre serializing at the
> end of each step and parsing again at the beginning of each step.
>
> This can be expensive and may involve loss of information (schema types,
> for example, from a validated instance in the first step wonbt be
> preserved in the second unless you re-validate after re-parsing).
>
> What you want is an XProc pipeline :-)
>
>                                        Be seeing you,
>                                          norm
>
> --
> Norman Tovey-Walsh <ndw@xxxxxxxxxx>
> https://nwalsh.com/
>
>> It is as easy for the strong man to be strong, as it is for the weak to
>> be weak.--Emerson

Current Thread