in reply to Perl_XML Twig Performance query
XML::Twig uses XML::Parser (Expat) to parse XML, but XML::Parser is just not that fast of a parser.*
SOAP::Lite uses XML::Parser as well. I wrote a patch that makes SOAP::Lite use XML::LibXML. Including the time it takes to convert XML::LibXML's output to XML::Parser's format, XML::LibXML was 12x faster.
Rate Expat LibXML Expat 9.09/s -- -92% LibXML 118/s 1202% --
Now, XML::LibXML is not a good solution for XML::Twig since XML::Twig is designed to work with huge documents and streams, but maybe XML::Twig is not the best solution for you.
* — It blows off the pants off every alternative I tried as the backend for XML::Simple, so it's not exactly a slouch either.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl_XML Twig Performance query
by mirod (Canon) on Apr 23, 2010 at 00:15 UTC | |
by ikegami (Patriarch) on Apr 23, 2010 at 04:47 UTC | |
by ikegami (Patriarch) on Apr 23, 2010 at 04:49 UTC | |
|
Re^2: Perl_XML Twig Performance query
by Anonymous Monk on Jun 16, 2010 at 18:54 UTC | |
by choroba (Cardinal) on Jun 17, 2010 at 08:37 UTC |