in reply to Fastest XML parser that can run under ActivePerl on Windows?

XML::Simple doesn't do any parsing. It uses one of many parsers. Many users of XML::Simple use XML::SAX::PurePerl as their parser, the slowest of the bunch. (And it has problems with encodings.) According to my tests (which I don't have handy), XML::Simple is fastest when you have it use XML::Parser. XML::LibXML is much faster yet.

  • Comment on Re: Fastest XML parser that can run under ActivePerl on Windows?

Replies are listed 'Best First'.
Re^2: Fastest XML parser that can run under ActivePerl on Windows?
by Xenofur (Monk) on Apr 26, 2009 at 22:49 UTC
    Wow, thanks a lot. That works perfectly. :)

    Edit: XML::Parser, i mean. With LibXML it only complains about the ParserDetails.ini missing and still runs slowly.
      I didn't know XML::LibXML could be used with XML::Simple. I didn't benchmark that.
        Apparently you can use it by declaring XML::LibXML::Sax to be the preferred parser. However, this means that apparently you thought of doing it in another way. Mind explaining?