Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] DOMConverter performance regression

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <cowan AT ccil.org>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] DOMConverter performance regression
  • Date: Sat, 2 Oct 2004 12:12:02 -0400

Elliotte Harold scripsit:

> However the problem with this solution is that it adds another 4 bytes
> per element to XOM's memory footprint, and I don't think that's a price
> I'm willing to pay here. I'll see if I can fix the problem some other
> way that has less of a downside.

Most apps retreive not only the next child but from the same parent
element. You could therefore keep global (or thread-local) state
of lastParent and lastPosition. However, experiment would be needed
to see if the required synchronization or thread-local variable would
be expensive enough to make the optimization pointless.

--
John Cowan cowan AT ccil.org http://www.reutershealth.com
"Not to know The Smiths is not to know K.X.U." --K.X.U.




Archive powered by MHonArc 2.6.24.

Top of Page