xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Rusty Harold <elharo AT ibiblio.org>
- To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] Lexical information?
- Date: Wed, 1 Jun 2016 12:34:15 -0700
It's not quite that simple. There's a significant cost in API complexity
(especially since you have methods that don't work unless you know the
magic incantation) and even if you don't ask for it, there's still an extra
reference per object being stored.
On Wed, Jun 1, 2016 at 11:34 AM, <nu.xom AT io7m.com> wrote:
> On 2016-05-31T22:52:38 +0100
> Michael Kay <mike AT saxonica.com> wrote:
> >
> > Of course, a naive implementation of node.getLineNumber() etc would add
> significantly to the memory occupancy of node objects. Saxon's approach is
> that (a) when building the tree, you have to ask for location information
> to be retained (setLineNumbering(true)), and (b) the location information
> is then held in a separate data structure which only exists when this
> option is requested.
> >
>
> That seems ideal to me. You don't get the costs of the extra data if
> you don't ask for it, and it doesn't affect the existing API in any way.
>
> M
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
>
--
Elliotte Rusty Harold
elharo AT ibiblio.org
-
Re: [XOM-interest] Lexical information?,
nu.xom, 06/01/2016
-
Re: [XOM-interest] Lexical information?,
Elliotte Rusty Harold, 06/01/2016
- Re: [XOM-interest] Lexical information?, nu.xom, 06/01/2016
-
Re: [XOM-interest] Lexical information?,
Elliotte Rusty Harold, 06/01/2016
Archive powered by MHonArc 2.6.24.