in reply to Re: processing massive XML files with XML::Twig
in thread processing massive XML files with XML::Twig
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
see XML::LibXML::Reader
by myuserid7 (Scribe) on Dec 06, 2008 at 13:56 UTC | |
by Anonymous Monk on Dec 06, 2008 at 14:15 UTC | |
by myuserid7 (Scribe) on Dec 06, 2008 at 17:51 UTC | |
by Anonymous Monk on Dec 07, 2008 at 02:51 UTC | |
by mirod (Canon) on Dec 07, 2008 at 10:50 UTC | |
by Anonymous Monk on Dec 07, 2008 at 21:52 UTC | |
by mirod (Canon) on Dec 08, 2008 at 10:01 UTC |