You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by ni...@belgium.agfa.com on 2001/02/28 12:29:45 UTC
Xerces Vs. Performance
Has somebody done some performance testing with the Xerces-C SAX parser.
I my opinion, the performance is not very good, mainly due to the heavy
use of C++ exceptions for 'normal' operation.
The Xerces-C makes a lot of use of exceptions internally as part of its normal
operation,
resulting in a lot of exceptions being thrown during parsing.
In my opinion exceptions is a large overhead, and should only
be used for the cases where it was designed for, that is, exceptional
circumstances.
What's your opinion on this?
Nico Verboven
Re: Xerces Vs. Performance
Posted by Miroslaw Dobrzanski-Neumann <mn...@mosaic-ag.com>.
On Wed, Feb 28, 2001 at 12:29:45PM +0100, nico.verboven.nv@belgium.agfa.com wrote:
>
> Has somebody done some performance testing with the Xerces-C SAX parser.
> I my opinion, the performance is not very good, mainly due to the heavy
> use of C++ exceptions for 'normal' operation.
>
> The Xerces-C makes a lot of use of exceptions internally as part of its normal
> operation,
> resulting in a lot of exceptions being thrown during parsing.
>
> In my opinion exceptions is a large overhead, and should only
> be used for the cases where it was designed for, that is, exceptional
> circumstances.
I agree performance is not very good (an impression); but if you need HP data
processing you will never choose XML for it. There are many others data
formats i.e. UN EDIFACT.
Before you begin to optimize anything you should check what is the bottleneck.
regards
--
Miroslaw Dobrzanski-Neumann
MOSAIC SOFTWARE AG
Base Development and Research
Tel +49-2225-882-291
Fax +49-2225-882-201
E-mail: mne@mosaic-ag.com
Re: Xerces Vs. Performance
Posted by ma...@crepido.com.
I agree that the performance of Xerces is not
very good. This is one of the reasons we would
consider building our own XML parser. But we really
would like to avoid building something, but instead
contributing to Xerces. BUT, my concern is the design
of Xerces. Can you ever get very high performance with
the current design???
/Marco
Quoting nico.verboven.nv@belgium.agfa.com:
>
> Has somebody done some performance testing with the Xerces-C SAX
> parser.
> I my opinion, the performance is not very good, mainly due to the heavy
> use of C++ exceptions for 'normal' operation.
>
> The Xerces-C makes a lot of use of exceptions internally as part of its
> normal
> operation,
> resulting in a lot of exceptions being thrown during parsing.
>
> In my opinion exceptions is a large overhead, and should only
> be used for the cases where it was designed for, that is, exceptional
> circumstances.
>
> What's your opinion on this?
>
> Nico Verboven
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>