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

RE: multiple input files to one output file

Subject: RE: multiple input files to one output file
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 3 Feb 2000 09:46:58 -0000
clear garbage collector ie5
> > Linda is mentioning "thousands of files"... 
> > It may be worthwhile to check that the files are closed and the
> > resources released for each iteration of the for-each loop.
> > Do you know if it's the case ?
> 
> Oh, I bet they are closed, but I also bet they have all been read into
> memory as source trees before processing begins. Yowch. 

Yes, it is potentially a problem. Saxon won't read and parse the document
until the document() function is executed, but it will then hold the tree in
memory - it has to, because if document() is called again with the same URI,
it has to return the same tree. So the garbage collector won't get any
chance to clear up. Perhaps an explicit free() mechanism is needed (but that
gets into questions of sequence of execution and side-effects).

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.