Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Exception message "-1"

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Steve Loughran <steve.loughran AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Exception message "-1"
  • Date: Thu, 26 May 2005 23:41:31 +0100

On 5/25/05, John Cowan <jcowan AT reutershealth.com> wrote:
> Wolfgang Hoschek scripsit:
>
> > IMHO, the least perturbing and most accurate profiler is the one
> > built into JDK 1.5. run java with
> > -server -agentlib:hprof=cpu=samples,depth=10' flags for a long enough
> > to collect enough samples to be statistically meaningful, then study
> > the trace log and correlate its hotspot trailer with its call stack
> > headers. For a background article on hprof see http://java.sun.com/
> > developer/technicalArticles/Programming/HPROF.html
>
> Until there's a wider adoption of the 1.5 VM, I don't want to optimize for
> it.

Does anyone have any 1.5 adoption metrics? jconsole is kind of cool
too, for monitoring running apps.

I'm using Java1.5 for some Xom stuff; attached is an LPGL class to
iterate over nodes. I have subclasses for the attributes, elements,
etc. Note the abuse needed to make an iterator Iterable, lets you go

for (Element e=elements()) {
....
}

Overall, I'm not sure if is worth the effort of being incompatible
with previous versions.

-steve



Archive powered by MHonArc 2.6.24.

Top of Page