[jdom-interest] New benchmark
arosen at silverstream.com
Tue Jul 2 12:20:49 PDT 2002
> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Jason Hunter
> Sent: Tuesday, July 02, 2002 2:50 PM
> To: JDOM Interest
> Subject: [jdom-interest] New benchmark
> Interesting reading. JDOM's looking pretty good (and that's
> particularly impressive since b8 had the StringBuffer
> performance bug).
> But look at the last chart. There's clearly some bug there we need to
> track down!
I think that last problem is exactly the beta8 StringBuffer issue. When
parsing large files, the particular way we used StringBuffer meant that the
GC had a really hard time reclaiming the char arrays that it threw off, even
though there weren't reachable. I remember looking at it in Optimize-It, and
all of these char arrays were still being held on to, by references that
were called... I forget, some name that implied that they were ready for
freeing, but hadn't actually been freed. We fixed this a few days after beta
8, and it caused the parse time on Dennis' much_ado.xml file (198K) to be
reduced by an order of magnitude, if I remember correctly.
More information about the jdom-interest