>From what I've seen Xerces2 performance is better for smaller documents, while Xerces1 is better for larger documents. Your file is a large one by my standards.
Xerces1 appeared to have a lot of initialization overhead for a parse. The Xerces2 code avoids that overhead, but long term performance on larger documents definitely suffers as shown by your timings. It'd be great if the Xerces2 performance on larger documents could be improved to match Xerces1. - Dennis Yonghui Chen wrote: > Hi all, > > I have just tried 3 parsers, Xerces Java 1, Xerce Java 2 and Crimson, > use both DOM and SAX parser parse a 960kb XML file for 10 times, the > time cost are: > > Xerces 1 Xerces 2 Crimson > > DOM 3906 4937 4697 > > SAX 1322 1832 1332 > > It is said that my best choose is Xerces1. So, what's the improves in > Xerces 2? > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
