in reply to Re^3: Why oh why is working with XML so bloomin' difficult in Perl?
in thread Modified title: The structures created by many of the XML parsers in Perl appear unnecessarily deep in levels...

I stand corrected. It has been a while since I installed either, but XML::Twig is a bit easier to install than XML::LibXML.

I can't agree with your view on the memory aspect. While XML::Twig may to keep nothing in memory, it does get pretty leaky. Then again, It has been a while, and not the latest version.

Speed wise though LibXML is much faster than Twig. I had to switch our app from Twig to LibXML because documents in Twig were taking close to 5 seconds each, but LibXML was .05 seconds.

  • Comment on Re^4: Why oh why is working with XML so bloomin' difficult in Perl?

Replies are listed 'Best First'.
Re^5: Why oh why is working with XML so bloomin' difficult in Perl?
by jeffa (Bishop) on Jan 20, 2009 at 20:42 UTC

    Isn't that a classic trade-off? Pick one: fast or light weight. If you can use up as much memory as you want, finding something should not take a whole lot of time. But if you want to keep your RAM usage down, way down -- you have to spend extra CPU cycles to do so.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)