Skip to Content.
Sympa Menu

xom-interest - RE: [XOM-interest] indexOf O(1) patch?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Michael Kay" <mike AT saxonica.com>
  • To: "'Elliotte Harold'" <elharo AT metalab.unc.edu>, "'Wolfgang Hoschek'" <whoschek AT yahoo.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: RE: [XOM-interest] indexOf O(1) patch?
  • Date: Tue, 1 Feb 2005 22:47:26 -0000

> > the
> > baseURI of each Node is almost always the same so
> > those 4 bytes could be reduced,
>
> This might need more elaboration. What would change? I don't
> see how we
> can support different base URIs on different elements without
> carrying
> around this field.

Saxon stores a node-to-base-URI mapping in a separate table. If a node has
no entry in that table, it looks for the base URI of the parent. Optimizes
for the most common case where all nodes in a document have the same base
URI.

Michael Kay
http://www.saxonica.com/





Archive powered by MHonArc 2.6.24.

Top of Page