Here are some informal numbers from xerces after the performance patch submitted earlier is applied.
The comparison was done taking Xerces 2.6.2 binary as the base.
The XML file used contained multiple entity references with nesting depth of upto 3 levels.

XMLEntityManager$ScannedEntity creation:

Xerces 2.6.2:  0.8 sec for 674 invocations (avg)
New               :  0.02 sec for 674 invocations (avg)

This translates to a 7-9% improvement in the overall speed of parsing. This, of course, is highly
dependent on the content of the input.

Ankit Pasricha
XML Parser Development
IBM Toronto Lab
8200 Warden Avenue, Ontario L6G 1C7
Phone: (905) 413 4941

Reply via email to