> -----Original Message-----
> From: Andy Clark [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 14, 2003 21:18
> To: [EMAIL PROTECTED]
> Subject: Re: Enhancing parsing performance
> 
> Jean Georges PERRIN wrote:
> > I am parsing a 3 Kb XHTML file and it takes me about 4s, cloning the
> tree
> > takes me roughly a ridiculous amount of time (10ms). This on an Athlon
> XP
> > 1800+ running XP (sure I could switch to Linux but it is not planned for
> now
> > :) ).
> 
> Is 10 milliseconds "ridiculous" because it's an 1800+ MHz
> machine? Or is the s/ms a typo of some sort? I'm surprised
> that it takes you 4s to parse a 3Kb file. On my 650 MHz
> laptop (with incredibly slow internal IO), I can parse
> megabytes in that time.

10 ms is fine... it is ridiculously fast compared to the 4s I need to parse.
Sorry, I guess I was not very clear. Nothing to do with the machine or the
I/O (at this time).

> You might want to try turning off the deferred DOM feature
> in order to decrease the clone time. This will, however,
> increase the parse time. Also, are your numbers only for
> the first parse/clone of the document? What about following
> runs using same parser/document?

My target is to parse XHTML documents coming from another software. The
header of this document contains links to the outside world and that's
surely what is causing my slow performance issue.

Is there a way to forbid it to go outside? To cache it?

Simon suggested to have my custom EntityResolver, how can I do that?

Sorry if those appear to be super basic questions.

Thanks for the help,

jgp



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to