|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: multiple input files to one output file
> > 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








