|
RE: Template recursion, StackOverflowError, saxon:while a nd variable assig: msg#00099text.xml.saxon.help
> 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> |
|---|---|---|
| Previous by Date: | RE: Template recursion, StackOverflowError, saxon:while a nd variable assignability: 00099, Michael Kay |
|---|---|
| Next by Date: | Extension functions: array conversion bug: 00099, Wolfgang Hoschek |
| Previous by Thread: | RE: data() function working correctly?i: 00099, Michael Kay |
| Next by Thread: | Re: Template recursion, StackOverflowError, saxon:while a nd variable assignability: 00099, Dimitre Novatchev |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |