xominterest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOMinterest] Possible ArrayList optimization
 From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
 To: xominterest <xominterest AT lists.ibiblio.org>
 Subject: Re: [XOMinterest] Possible ArrayList optimization
 Date: Fri, 9 May 2003 22:33:25 0400
At 4:48 PM 0700 5/9/03, dirk bergstrom wrote:
0 and 1 is probably too small, and will result in extra arraycopy operations.
Eventually I'll have to add some real tests. For children I'm starting with a capacity of 1, since that's what will be needed for the very <common>case</common> of an element that only contains text. When I get some real benchmarks I can adjust this.
So far I haven't been able to get my memory down enough to run the programs I want to run. This is with heap sizes of up to 768M which is absolutely obscene for the size of the documents I'm processing. I suspect a memory leak somewhere.
I'm investigating profiling tools to help me locate it. So far I've discovered JProbe is completely nonfunctional. Once I find something that actually works I may be able to track this down.

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (AddisonWesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA

[XOMinterest] Possible ArrayList optimization,
Elliotte Rusty Harold, 05/09/2003
 Re: [XOMinterest] Possible ArrayList optimization, John Cowan, 05/09/2003

Re: [XOMinterest] Possible ArrayList optimization,
dirk bergstrom, 05/09/2003

Re: [XOMinterest] Possible ArrayList optimization,
Elliotte Rusty Harold, 05/09/2003
 Re: [XOMinterest] Possible ArrayList optimization, Elliotte Rusty Harold, 05/11/2003

Re: [XOMinterest] Possible ArrayList optimization,
Elliotte Rusty Harold, 05/09/2003

Re: [XOMinterest] Possible ArrayList optimization,
Bradley S. Huffman, 05/09/2003
 Re: [XOMinterest] Possible ArrayList optimization, Elliotte Rusty Harold, 05/10/2003

Re: [XOMinterest] Possible ArrayList optimization,
Elliotte Rusty Harold, 05/11/2003

Re: [XOMinterest] Possible ArrayList optimization,
Bradley S. Huffman, 05/12/2003
 Re: [XOMinterest] Possible ArrayList optimization, Elliotte Rusty Harold, 05/12/2003

Re: [XOMinterest] Possible ArrayList optimization,
Bradley S. Huffman, 05/12/2003

Re: [XOMinterest] Possible ArrayList optimization,
Janek Bogucki, 05/11/2003

Re: [XOMinterest] Possible ArrayList optimization,
Elliotte Rusty Harold, 05/12/2003

Re: [XOMinterest] Possible ArrayList optimization,
dirk bergstrom, 05/12/2003
 Re: [XOMinterest] Possible ArrayList optimization, Elliotte Rusty Harold, 05/13/2003

Re: [XOMinterest] Possible ArrayList optimization,
dirk bergstrom, 05/12/2003

Re: [XOMinterest] Possible ArrayList optimization,
Elliotte Rusty Harold, 05/12/2003
Archive powered by MHonArc 2.6.24.