[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Complex recursion in XSLT 1.0

Subject: RE: Complex recursion in XSLT 1.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 21 Feb 2008 23:24:20 -0000
RE:  Complex recursion in XSLT 1.0
> Very interesting indeed. Does this mean also that a LILO 
> (last-in becomes last-out) stack is to be preferred against 
> LIFO (last-in becomes first-out) ...

No, not at all. It just means that when you map a logical Stack to an XPath
sequence, then in Saxon it might perform better if the "top" of the stack is
the last item in the sequence rather than the first. 

If you only access the stack using the functions provided (and of course
it's not encapsulated, so one can't enforce this) then it doesn't make any
difference to the correct functioning of your application either way.

It's only a conjecture about performance, which needs to be tested. When you
create a sequence by appending an item to an existing sequence, Saxon tries
under some circumstances to share the memory occupied by the original
sequence and avoid doing a physical copy. Such optimizations are possible of
course only because sequences are immutable.

Michael Kay

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.