I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-01-30 15:43:48.060401-08 by aschein
efficiently creating a large XML tree
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
Exclusive Times
%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
tElement

Meanwhile, the most obvious calls within my program are:
createElement
appendChild
setAttribute

Can you suggest some ways to speed up XML tree creation? Are there faster interfaces than the ones I am using?
Thanks! Andrew
Direct Responses: Write a response