Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Attributes performance patch

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: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Attributes performance patch
  • Date: Mon, 22 Nov 2004 08:49:52 -0800

Improves by some 12%. The benchmark was given in the mail: download the document contained in the zip file, and run deserialization with the nux BinaryXMLTest. BinaryXMLTest is also good for simulating and benchmarking a program generating a XOM tree in memory, via the normal XOM Node constructors.
Actually, now that I say it, it perhaps only applies to my latest nux CVS version, which has some more performance improvements, the result being that it increasingly turns up more and more XOM hotspots. I you want it, let me know and i'll send you a snapshot.

The other thing is that some days ago I submitted performance patches for URI and PCDATA checks in Verifier. They slighly restructure the algorithms, reducing memory allocation, some unnecessary calculations, and making the methods shorter and easier to inline.

These are actually much more important than the Attributes patch. Safe some 30% is some cases. Did you have a look at those? You can get them at http://dsd.lbl.gov/~hoschek/xom-patches

Wolfgang.

On Nov 22, 2004, at 2:48 AM, Elliotte Harold wrote:

This looks plausible, and there's certainly no reason not to apply it (doesn't affect the correctness of code or anything) so I'll probably just go ahead and integrate it, but for performance issues in general, it's really helpful if you can provide a benchmark that demonstrates the problem so I can actually measure the effect and integrate it into future tests.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim





Archive powered by MHonArc 2.6.24.

Top of Page