Thanks, runrig
I actually set
$XML::SAX::ParserPackagein my SAX test and gave each of the modules a go. ExpatXS was the fastest, so I just used it.
I thought XML::LibXML was a tree parser and I have had little luck with them as I run out of memory and my windoze session grinds to a halt :-(
I quite like the feel of SAX and might just put up with the penalty but I wanted to get some opinions before just ploughing ahead and coding all the parsers I need.
BTW, PurePerl took a lot longer. Here's the original run where I timed a few of the SAX modules :)
XML::LibXML::SAX real 1m9.658s user 1m3.186s sys 0m0.312s XML::SAX::Expat real 2m29.873s user 2m2.421s sys 0m0.389s XML::SAX::ExpatXS real 0m55.370s user 0m49.014s sys 0m0.311s XML::LibXML::SAX::Parser real 2m31.700s user 2m14.342s sys 0m0.483s XML::SAX::PurePerl real 5m2.766s user 4m23.733s sys 0m0.515s
In reply to Re^2: Which XML parser would be the wisest to use
by wardy3
in thread Which XML parser would be the wisest to use
by wardy3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |