Re: [xsl] perfomance question about selecting from child-node

Subject: Re: [xsl] perfomance question about selecting from child-node
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 22 May 2003 17:23:25 +0100
> it is slower when i am on a specific branch/node, if i go back to t

It probably is, but there is probaby a time cost in passing parameters
as well. Which one wins will be highly processor specific.
Compared to using keys instead of //* which can make orders of magnitude
difference, this is likely to be a very small effect as you are only
going .. to access th eparent and I would guess most systems optimise
.. fairly heavily. If you were searching up arbitrary amounts,
ancestor::*[this and that and the other] then not doing that search and
passing down a parameter will probably start to win. (Unless your xsl
system spots that the same search is being done repeatedly and optimises
it away...).


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

 XSL-List info and archive:

Current Thread