- Code: Select all
schemaCompiler wpeters$ time ./build/Debug/schemaCompiler schema.xml > /tmp/schema.sql
schemaCompiler wpeters$ time ../pugi/schemaCompiler/build/Debug/schemaCompiler schema.xml > /tmp/schema.sql
Ugh. Why would the Poco code be 400 times slower? The input file is relatively large, about 8.7M, but that's not all that big on a system with 8GB ram. I can post the code and the data file if anyone is interested in looking at it. The file is loaded into memory using a Poco::XML::DOMParser then parsed by using getElementsByName, getAttributeNode, and getChild.