Mike,
I am currently using the following method for reading files from a directory of unknown contents:

<xsl:for-each select="for $d in collection(...) return saxon:discard-document($d)">
....
</xsl:for-each>

I noticed today instances where it appear saxon was over-ambitious in terms of determining how many threads to use when executing this. It attempted to open/parse too many documents at once. In one case this caused a large performance hit (~85% reduction in speed). In another case I ran out of heap space.

Are there any ways (either explicitly or implicitly) to control/limit the number of threads used at a time?

-David


--

"A false conclusion, once arrived at and widely accepted is not dislodged easily, and the less it is understood, the more tenaciously it is held." - Cantor's Law of Preservation of Ignorance.