logo       

RE: Template recursion, StackOverflowError, saxon:while a nd variable assig: msg#00099

text.xml.saxon.help

Subject: RE: Template recursion, StackOverflowError, saxon:while a nd variable assignability

> If I understand well, this means that with the virtual copy
> optimization performing N "assignments" will require only
>
> O(N) total space
> vs
> O(N^2) total space without the optimization.
>
>
> Is this right, Mike?
>

I think on reflection that the virtual copy mechanism won't be invoked in
your example: copy-of will only result in a virtual copy if the node created
is not being attached as a child to another node. The original node can have
a parent, but the copy can't.

I suspect you would actually get better performance by doing a copy that
excludes the value being "updated". The extra filtering cost would be more
than compensated by the fact that the size of the environment doesn't
continually increase.

Michael Kay





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise