Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Attributes performance patch

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Attributes performance patch
  • Date: Tue, 23 Nov 2004 07:47:37 -0500

I wrote a benchmark of my own that just copies an existing document manually (i.e. without using the various copy methods) so that it hits everything in the Verifier. Profiling revealed a few hotspots, particularly places where I should have been caching the length of a string and using a toCharArray instead of charAt. However some of the optimizations you suggested seemed to have negative effects on my VM. In particular, pulling the try-catch blocks out of for loops appeared to slightly increase the time spent in those methods. We may be at the point where optimizations are getting too tightly tied to the idiosyncrasies of one VM or the other. :-(

--
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




Archive powered by MHonArc 2.6.24.

Top of Page