Project

Profile

Help

Memory Usage of Source Documents

Added by Anonymous over 15 years ago

Legacy ID: #7086763 Legacy Poster: Talmage (qnox)

Is there a approximation that can be used of the memory required to process a source document of size X? Are there any other considerations I need to take into account regarding memory used by the JVM for large source documents? For example, if I do something like: <xsl:variable name="RootDoc" select="/"/> Have I now doubled the memory required to process my source doc? I ask because my source document is the results from several database queries and on occasion the size of this source document can become quite large (300-400mb).


Replies (1)

RE: Memory Usage of Source Documents - Added by Anonymous over 15 years ago

Legacy ID: #7086978 Legacy Poster: Michael Kay (mhkay)

>Is there a approximation that can be used of the memory required to process a source document of size X It's generally between 3 and 5 times the source document size. > if I do something like: <xsl:variable name="RootDoc" select="/"/> No, that variable is a reference to an existing node, not a copy. If you did <xsl:variable name="RootDoc"> <xsl:copy-of select="/"/> </xsl:variable> then in general you would be doubling the size - except that Saxon will sometimes optimize such constructs and avoid making the copy.

    (1-1/1)

    Please register to reply