Enhancing parsing performance 2003-01-14 - By Andy Clark
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.
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?
-- Andy Clark * andyc@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|