Hi - I am engaged in a project to convert portions of the Windows Registry into an XML tree using XML::LibXML. I am finding that creating large XML files using XML::LibXML causes a severe slowdown (possibly quadratic). A profile for the program shows:
Total Elapsed Time = 241.3604 Seconds
User+System Time = 240.3390 Seconds
%Time ExclSec CumulS #Calls sec/call Csec/c Name
63.0 151.5 151.52 10667 0.0142 0.0142 XML::LibXML::Node::removeChild
34.8 83.85 83.856 10668 0.0079 0.0079 XML::LibXML::Document::_setDocumen
Meanwhile, the most obvious calls within my program are:
Can you suggest some ways to speed up XML tree creation? Are there faster interfaces than the ones I am using?