I've seen the same sort of behavior for both Xerces 1 and 2. The
deferred node expansion appears to have a lot of initialization
overhead; it slows processing a lot on smaller files.
- Dennis
Tobbi wrote:
All right, I'll try it and let you know.
Thanks for help, Tomas Bouda
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 5:28 PM
Subject: Re: Faster startup
I don't know the Xerces internals well enough to give a theoretical
explanation of why it might help. I only have the empirical experience of
disabling that feature and seeing it improve performance in a similar
situation. Your situation may turn out to be different and it may not
help--the only way to find out is to try it. It should be easy to try.
The DeferredDocumentImpl calls that your profiler identifies as chewing up
a lot of time also suggests to me the possible relevance of disabling this
feature.
If it does help, I'd be interested in hearing the explanation as to why
from the Xerces team...
Eric
"Tobbi"
<[EMAIL PROTECTED] To:
<[EMAIL PROTECTED]>
com> cc:
Subject: Re: Faster startup
03/19/2002 02:36
AM
Please respond
to xerces-j-user
Hi,
thanks for your answer, but what improvements should I expect? I don't
think
that full expansion of document could help in any way.
Tomas Bouda
Try calling:
factory.setAttribute
("http://apache.org/xml/features/dom/defer-node-expansion", new
Boolean(false));
(assuming you're using the DocumentBuilder interfaces and factory is a
DocumentBuilderFactory)
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]