xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- 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] Some minor issues
- Date: Sun, 05 Dec 2004 05:43:35 -0500
Wolfgang Hoschek wrote:
2) Moving attributes into Element (see a prior thread)
I don't quite see how this could possibly increase memory consumption. Rather it reduces it slightly by eliminating one pointer to store. A pointer takes 4 bytes, and all pointers are the same, so where would there be a difference? Perhaps you accidentally initialized the ArrayList to something other than "null", which it normally is. Please check your measurements (or tools or methodology - memory consumption is notoriously hard to measure). The change also improves performance, as discussed earlier.
It increases memory because my initial implementation was brain-damaged. The current code is actually quite well-optimized for memory footprint. making major changes like this has a tendency to remove a lot of other, more important optimizations unless I'm quite careful. There's nothing fundamentally wrong with this idea, but it's not a quick fix, and needs careful testing and measurement. It's on my TODO list, along with some more aggressive optimizations along these lines. However, I may or may not get it done before 1.0.
The only 1.0 blocker right now is XInclude. Once the XInclude working group gets their final spec out I'll make any final fixes necessary in nu.xom.xinclude and call it 1.0. These sorts of internal changes can be done in 1.0.1 if the XInclude working group finishes before I get to this.
--
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
-
[XOM-interest] Some minor issues,
Wolfgang Hoschek, 12/03/2004
-
Re: [XOM-interest] Some minor issues,
Elliotte Harold, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Wolfgang Hoschek, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Elliotte Harold, 12/06/2004
-
Re: [XOM-interest] Some minor issues,
Wolfgang Hoschek, 12/06/2004
-
Re: [XOM-interest] Some minor issues,
Elliotte Harold, 12/06/2004
- Re: [XOM-interest] Some minor issues, Wolfgang Hoschek, 12/06/2004
-
Re: [XOM-interest] Some minor issues,
Elliotte Harold, 12/06/2004
-
Re: [XOM-interest] Some minor issues,
Wolfgang Hoschek, 12/06/2004
-
Re: [XOM-interest] Some minor issues,
Elliotte Harold, 12/06/2004
-
Re: [XOM-interest] Some minor issues,
Wolfgang Hoschek, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Elliotte Harold, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Wolfgang Hoschek, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Elliotte Harold, 12/05/2004
- Re: [XOM-interest] Some minor issues, Wolfgang Hoschek, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Elliotte Harold, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Wolfgang Hoschek, 12/05/2004
- Re: [XOM-interest] Some minor issues, Elliotte Harold, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Elliotte Harold, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Wolfgang Hoschek, 12/05/2004
- Re: [XOM-interest] Some minor issues, Elliotte Harold, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Wolfgang Hoschek, 12/05/2004
-
Re: [XOM-interest] Some minor issues,
Elliotte Harold, 12/05/2004
Archive powered by MHonArc 2.6.24.