Re: [xsl] xslt architecture

Subject: Re: [xsl] xslt architecture
From: "Colin Adams" <colinpauladams@xxxxxxxxxxxxxx>
Date: Thu, 22 May 2008 10:35:12 +0100
2008/5/22 Andrew Welch <andrew.j.welch@xxxxxxxxx>:
> From a processor's perspective: is there any difference between one
> stylesheet containing 100 templates and 100 stylesheets each
> containing 1 template each, with an extra stylesheet containing 100
> include statements?

The monolithic one is likely to be measurably faster (if you have a
high resolution timer), but not noticeably faster (to the user).
Simply because of the overhead involved in opening a file (or socket
connection).

Memory usage will also be very slightly higher.

> Import precedence issues aside, if they were 100 imports instead of
> includes, does that make a significant difference to the processor?
> (all unique files imported once, not the same file imported in
> multiple locations)

No.

Current Thread