Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] classloading bug with xom used in servlet

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <cowan AT ccil.org>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] classloading bug with xom used in servlet
  • Date: Wed, 4 Feb 2004 00:38:48 -0500

Elliotte Rusty Harold scripsit:

> Could this string be garbage collected after I'd decoded it into the
> byte array I really want? Or would I be carrying the same 64K of data
> around twice, once in a String and once in a byte array? In which
> case should I just hide the lookup table in the chars of a String
> rather than the bytes of an array in the first place?

I think it would be GC'd if you used it to initialize a String variable
and then set the variable to null after you were done. I'm sure a byte
array would be faster than a String, but I don't know how much faster --
measure it.

--
I am expressing my opinion. When my John Cowan
honorable and gallant friend is called, jcowan AT reutershealth.com
he will express his opinion. This is http://www.ccil.org/~cowan
the process which we call Debate. --Winston Churchill




Archive powered by MHonArc 2.6.24.

Top of Page