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 <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] profiler
- Date: Wed, 24 Nov 2004 17:48:01 -0500
Wolfgang Hoschek wrote:
Another, unrelated thing to note is that JDK 1.5 nomore does String.subString() sharing. It's good news since it can eliminate hidden memory leaks, and it's bad news since it can produce tons of memory overhead where code implicitly assumes that substrings are shared. For example, Element.prefix and Element.localName come to my mind. Even if a prefixed qname is constant, new copies are generated by the internal design of Element, and, worse, semi-permanently stored in Element. Same for Attribute.
Oh crap. This is what I hate about optimization. You get it just right, and then everything changes. Does this mean I should be calling intern on the prefixes and local names? Or does substring at least do that in 1.5?
I'll look at this, but I'm not going to make any 1.5 specific optimizations for at least the next few months. Right now the prime target is Java 1.4. Sometime down the road, I'll think about targeting 1.5 instead.
--
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] profiler,
Wolfgang Hoschek, 11/23/2004
-
Re: [XOM-interest] profiler,
Elliotte Harold, 11/23/2004
-
Re: [XOM-interest] profiler,
Wolfgang Hoschek, 11/23/2004
-
Re: [XOM-interest] profiler,
Elliotte Harold, 11/24/2004
-
Re: [XOM-interest] profiler,
Wolfgang Hoschek, 11/24/2004
-
Re: [XOM-interest] profiler,
Elliotte Harold, 11/24/2004
-
Re: [XOM-interest] profiler,
Wolfgang Hoschek, 11/24/2004
- Re: [XOM-interest] profiler, Wolfgang Hoschek, 11/24/2004
-
Re: [XOM-interest] profiler,
Wolfgang Hoschek, 11/24/2004
-
Re: [XOM-interest] profiler,
Elliotte Harold, 11/24/2004
-
Re: [XOM-interest] profiler,
Wolfgang Hoschek, 11/24/2004
- Re: [XOM-interest] profiler, Elliotte Harold, 11/24/2004
-
Re: [XOM-interest] profiler,
Elliotte Harold, 11/24/2004
-
Re: [XOM-interest] profiler,
Wolfgang Hoschek, 11/23/2004
-
Re: [XOM-interest] profiler,
Elliotte Harold, 11/23/2004
Archive powered by MHonArc 2.6.24.