Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: processing massive XML files with XML::Twigby mirod (Canon) |
on Dec 05, 2008 at 10:20 UTC ( [id://728244]=note: print w/replies, xml ) | Need Help?? |
Did you try? I mean did you compare the performances of XML::Twig and XML::SAX? Because I did, for a simple benchmark. Look at the last table. SAX is convenient because with modules like SAX::Machines it allows you to create pipelines of SAX filters, plug-in dumps... It is IMHO a pain to use. It is also demonstrably slow. At least in Perl. Sorry, you hit one of my pet peeves ;--) If you want better performance than XML::Twig, you can use XML::LibXML. The API is different (pure-DOM + XPath + fewer convenience methods than XML::Twig), and it is more difficult to process big files (but XML::LibXML uses less memory than XML::Twig, so you are more likely to be able to load the entire XML in memory).
In Section
Seekers of Perl Wisdom
|
|