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: Sun, 14 Nov 2004 07:32:41 -0500

Wolfgang Hoschek wrote:

#1 Right, the Verifier URI sanity checks are quite involved, unfortunately. The JDOM checks are less involved (but also less strict). If you look at how java.net.URI is implemented (someone seems to have worked real hard on that code) you might, with luck, find some tricks that can help.

That makes a lot more sense. It occurs to me now that I could probably speed this up for the common case by caching three or four namespace URIs (it's a rare program that uses more than that) and not reverifying them for each and every element. Then however expensive the URI verification code is, you'd only need to pay the price once, at least most of the time. That might remove the need for one of your patches.

I'll look at your benchmark code and see what I can do. Does the code include the sample documents as well? One thing I've noticed while looking at this is that a lot of my tests cases I've been using to optimize are namespace free. I do need to do some more testing with documents that use namespaces.

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