Hi Jens,

[email protected] <[email protected]> writes:

> Do people have similar expierence with this?

A number of optimizations have been done for Xerces-C++ 3-series so,
at least on our benchmarks (parsing without validation, parsing with
XML Schema validation, and serialization), it is at least 20-30% faster 
than 2-series.

> Are there maybe some options in 3.1.x or in general to speed up parsing 
> of large files?

In Xerces-C++ 3-series the build system has changed to autoconf/automake.
As a result, you may be using different optimization options when building
the two versions. For example, by default with the GCC compiler Xerces-C++ 
3-series is built with -O2 -g while 2-series with -O3, if I remember
correctly. So I suggest that you explicitly pass optimization flags to
the 3-series build during configure:

./configure CFLAGS=-O3 CXXFLAGS=-O3 ...

Let us know if you see any difference with this.

Boris

-- 
Boris Kolpackov, Code Synthesis        http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++   http://codesynthesis.com/products/xsd
XML data binding for embedded systems  http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli

Reply via email to