[xsd-users] Where can I find info about C++/Hybrid

Boris Kolpackov boris at codesynthesis.com
Thu Jul 10 09:45:21 EDT 2008


Hi Wang,

Wang Chen <chenuang at gmail.com> writes:

> Some early experiment shows that the performance of parsing and
> serialization is slightly below expectation. 

I would be interested to know some more about your setup, what kind
XML documents you are parsing, what performance you get and what is
required.

There is also a number of techniques that can be used to obtain
better performance, including:

* Disabling XML Schema validation if not required.

* Pre-parsing and caching XML Schema which can then be reused
  to validate multiple documents.

* Reusing XML parser/serializer to parse/serialize multiple
  documents.

The last two techniques are demonstrated in the 'caching'
example in examples/cxx/tree/.

Furthermore, the next release of Xerces-C++, which should
be out in the next couple of month with final beta available
in the next couple of weeks, is currently about 20% faster
than 2.8.0. This might also help.


> Fortunately it is said that there will be a new 'C++/Hybrid'
> mapping available soon, which decouples the in-mem data
> binding with parser/serializer, and hopefully will address the
> performance issue. Where can I get more info about the 'Hybrid'
> mapping? Some prototype usage example will be much appreciated.

We plan to first introduce this mapping in XSD/e, our embedded
systems offering. After that it will be ported to XSD. We expect
to get the first usable version in XSD/e by mid-October. For
a high-level overview of the mapping please see:

http://www.codesynthesis.com/pipermail/xsd-users/2008-June/001727.html

Boris




More information about the xsd-users mailing list