You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Joseph Kesselman <ke...@us.ibm.com> on 2002/11/20 15:31:16 UTC
Re: Defer node expansion
On Wednesday, 11/20/2002 at 02:46 ZE2, Pavel Ausianik
<Pa...@epam.com> wrote:
> Could somebody explain when the defer node expansion should be used in
> xerces 2?
1) When you don't intend to examine the entire document, this choice can
save memory and parsing time.
2) When latency (time before you can access the first node) is more
important than throughput (time before you can access the last node), this
choice can make your program more responsive.
Hence, deferred node expansion tends to be particularly helpful when
processing only part of a large document. But it may cost performance when
processing all of a small document. That's why it's optional.
(Note the similarity to Xalan's "incremental DTM" mode.)
______________________________________
Joe Kesselman / IBM Research
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org