Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] profiler

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] profiler
  • Date: Tue, 23 Nov 2004 16:48:56 -0800

Allow me to speculate that the xom source snippet below might have to do with the just mentioned profiler and/or client VM problems, or similar reasons:

public Attribute(
String name, String URI, String value, Type type) {

prefix = "";
String localName = name;
// Warning: do not cache the value returned by indexOf here
// and in build
// without profiling. My current tests show doing this slows
// down the parse by about 7%. I can't explain it.
if (name.indexOf(':') > 0) {
prefix = name.substring(0, name.indexOf(':'));
localName = name.substring(name.indexOf(':') + 1);
}

Wolfgang.





Archive powered by MHonArc 2.6.24.

Top of Page