[xsd-users] Performance issues with XSD
Gérald GIRAUD
gerald.giraud at artal.fr
Wed Jun 28 16:01:09 EDT 2006
Hello,
We have made some performance tests with XSD and got some surprising results.
Our test program performs the following actions:
We measure the cpu time consumed to read a xml file into a C++ object and
serialize it into another external file (and this 10000 or 100000 times)
In our sample, we only change the "book maxOccurs" from the .xsd file.
<xsd:element name="book" type="lib:book" maxOccurs="5"/>
When the maxOccurs=5, the measured time is 5 seconds.
When the maxOccurs=500, the mesaured time is 141 seconds, and this with
the same data (library_3.xml that contains only 3 books declared) !
Is there a way to fix this problem. Maybe our code is not correct : is it
possible to ensure the performance of XSD in that sample (even for
maxOccurs=5) ?
I join the sources of our sample (driver.cxx, library.xsd and library.xml)
Thanks
Gérald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: library.xsd
Type: application/octet-stream
Size: 1770 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060628/64113a4a/library.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: library_3.xml
Type: text/xml
Size: 1412 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060628/64113a4a/library_3.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: driver.cxx
Type: application/octet-stream
Size: 1396 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060628/64113a4a/driver.obj
More information about the xsd-users
mailing list