AW: [jdom-interest] Time for

Freude, Stefan Freude at
Mon Oct 9 22:59:27 PDT 2000

> -----Ursprüngliche Nachricht-----
> Von: Jason Hunter [mailto:jhunter at]
> Gesendet: Montag, 9. Oktober 2000 20:58
> An: Freude, Stefan
> Cc: 'jdom-interest at'
> Betreff: Re: [jdom-interest] Time for
> > Before and after the build call I take the time. The 
> > unexpected result is a
> > time of about 2200 milliseconds (on a PII 450 under NT 4.0).
> > That´s too long for my application. If the XML-file is more 
> > complex the time
> > used for build is only a few milliseconds greater.
> > 
> > What can I do to reduce this warmup time?
> Try a parser other than Xerces on the back end (see the alternate
> SAXBuilder constructor calls).  Crimson/ProjectX for example.  We're
> parser pluggable, and I bet you'll see a difference with different
> parsers.
> BTW, I bet your second parse would be a lot faster too 
> because then the
> JVM will have the large amt of Xerces code already loaded.
> -jh-


Thanks for your answer. I will try the Crimson/ProjectX. 

You are right, the second parse is a lot faster. But I don´t want to save
the builder object in the HttpSession for my application. So I have the
warmup for every XML document I get from outside.

Regards, Stefan

More information about the jdom-interest mailing list