You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by lm...@apache.org on 2002/01/29 22:53:10 UTC
cvs commit: xml-xerces/java/docs faq-performance.xml
lmartin 02/01/29 13:53:09
Modified: java/docs faq-performance.xml
Log:
some grammatical changes and info about deferred DOM
Revision Changes Path
1.6 +10 -7 xml-xerces/java/docs/faq-performance.xml
Index: faq-performance.xml
===================================================================
RCS file: /home/cvs/xml-xerces/java/docs/faq-performance.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- faq-performance.xml 14 Dec 2001 21:18:35 -0000 1.5
+++ faq-performance.xml 29 Jan 2002 21:53:09 -0000 1.6
@@ -22,8 +22,8 @@
</p>
<p>
The parser configuration will affect the performance of the parser.
- If you are interested in evaluating the parser performance with DTDs use StandardParserConfiguration (Note: this is the default parser configuration).
- For testing the performance for XML Schema evaluation turn on schema validation feature (this will insert XML Schema Validator in the pipeline).
+ If you are interested in evaluating the parser performance with DTDs use the StandardParserConfiguration (Note: this is the default parser configuration).
+ For testing the performance for XML Schema evaluation turn on the schema validation feature (this will insert the XML Schema Validator in the pipeline).
</p>
</a>
</faq>
@@ -83,11 +83,14 @@
is specified even when validation feature is set to false.
</li>
<li>
- For large documents, avoid using DOM which uses a lot of memory.
- Instead, use SAX if appropriate. The DOM parser requires that
- the entire document be read into memory before the application
- processes the document. The SAX parser uses very little memory
- and notifies the application as parts of the document are parsed.
+ By default, the DOM feature defer-node-expansion is true, causing DOM nodes to
+ be expanded as the tree is traversed.
+ This allows the parser to return
+ a document faster than if the tree is fully expanded during parsing and
+ improves memory usage when the whole tree is not traversed.
+ If memory usage using DOM is still a concern, SAX should be considered;
+ the SAX parser uses very little memory and notifies the
+ application as parts of the document are parsed.
</li>
</ul>
</a>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org