- Code: Select all
schemaCompiler wpeters$ time ./build/Debug/schemaCompiler schema.xml > /tmp/schema.sql
real 0m40.409s
user 0m40.138s
sys 0m0.119s
schemaCompiler wpeters$ time ../pugi/schemaCompiler/build/Debug/schemaCompiler schema.xml > /tmp/schema.sql
real 0m0.108s
user 0m0.065s
sys 0m0.034s
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.





