Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] [ANN] nux-1.0beta2 release

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] [ANN] nux-1.0beta2 release
  • Date: Sat, 13 Nov 2004 22:34:16 -0500

You mentioned a couple of hot spots:

1) allow to selectively disable the Verifiersanity checks for URIs and PCDATA via System properties, and 2) maintain an internal String instead of an UTF-8 encoded byte array in Text, which eliminates the expensive character conversions implied for each access to a Text object. This increases performance at the expense of memory footprint.

I can certainly believe #2. #1 surprises me. Did you find this while serializing and deserializing or doing something else? Generally XOM should not be verifying PCDATA when serializing or parsing, only when creating new nodes from a non-parser source.

XOM does check namespace URIs (on parsing only) because parsers don't do a full job of that. Hmm, looking at the code now I do see a way I could cut a chunk of that out though. I'm not sure how big the effect would be, but it might save some time. There are also a few places in the URI verification code I could replace String concatenation with StringBuffers, though again I'm not sure how big the effect would be.

--
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