Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Some minor issues

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] Some minor issues
  • Date: Sun, 05 Dec 2004 12:36:59 -0500

Wolfgang Hoschek wrote:

Can you be more specific? How and why would that remove other optimizations?


In the current code base I've paid a lot of attention to making sure each object carries around the minimum number of references it possibly can, is not initialized until it is use,d and is initialized to the minimum size it needs to be. This took quite a bit of work and profiling, all of which has to be redone when you redesign the underlying structures.

My initial attempt to remove the Attributes class increased memory usage because saving a few bytes per element did not compensate for losing the very carefully crafted ands measured optimizations in the Attributes class. Eventually, I could reproduce these in the Element class too, without the Attributes class, but it's not low-hanging fruit.

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