Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Small improvements

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Small improvements
  • Date: Sat, 27 Nov 2004 09:02:35 -0800

Small suggestion ("fruit hanging low"):

12% speedup in ParentNode.java for changing the static declaration of childen from a List to an ArrayList (which it is anyway):
ParentNode.java:

ArrayList children;
//List children;


10% speedup for moving Attributes.ArrayList into Element, which makes access faster, plus saves a little memory
(keeping static accessor methods in class Attributes, and adding an "ArrayList" parameter for the attributes)

Element.java:
// private Attributes attributes = null;
private ArrayList attributes = null;

Semantics remain unchanged by this.

With those patches applied bnux deserialization from CVS now yields:
weblog.xml: 40 MB/s
wurfl.xml: 55 MB/s
factbook.xml: 82 MB/s
soap.xml: 30 MB/s

The profiler traces for each of those are too large to attach. Contact me directly if you're interested.





Archive powered by MHonArc 2.6.24.

Top of Page