Re: [xslt] efficiency



Daniel Veillard writes:

> > <xsl:variable name="pageid" select="//page/@id"/>
> > 
> > and refer to $pageid rather than //page/@id
> > 
> > ...  one order of magnitude faster.
> 
>   should also become linear w.r.t. the input tree size.
> 
And it might get even better, if one takes the time to denote the
path explicitly.
Of course I don't know if that's possible in this case but I often see
constructs like this even where it would be possible. People are just lazy.
As long as the documents are short, it does not do much harm, but for
large documents things get worse.

gruesse
	Morus



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]