Tobbi wrote:
> my problem is Xerces bootstrap taking cca. 4 seconds on linux. In profiler
> info it seems that the most time in out bootstrap takes creating of
> DocumentBuilder and there are a lot of calls to DerreferedDocumentImpl and
> XMLAttrList. When I spoke about slow parsing I meant to parse small XML in
> 100ms and when I spoke about fast bootstrap I meant to start in 500ms. Is it
> possible to run Xerces in this way?

Sure. Just buy a faster machine. ;)

Seriously, though, I'm still unsure about the configuration
of your application. Of course performance is directly related
to the hardware on which the program runs. However, there are
a lot of other things that you could look for to improve your
app's performance. For example:

  1) Are you invoking a new VM every time or using the same one?
  2) Are you re-using parser instances or creating new ones 
     every time that you need to parse a short file?
  3) Are you using XML Schema? If yes, then you may benefit
     from caching the grammars you use for validation. If not,
     then your application performance could be improved by
     removing the XML Schema validator from the parser 
     pipeline.

These are just some ideas but there may be other things you
can do to improve performance. This mailing list is not here
to solve your system's or application's performance problems.
However, if there is a serious performance problem with the
parser, then we want to know so that we can improve Xerces.

Good luck and let us know if there are specific problems you
are experiencing that are parser related.

-- 
Andy Clark * [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to