I am trying to parse a simple file, and I want to know between:
XML::Simple
XML::Smart
LibXML
which one is faster?
XML::LibXML is the fastest, see the benchmarks at Ways to Rome.
It may or may not matter for a "simple file" (which I assume would mean that it's not too big).
There's also XML::Fast which seems to be a pretty serious contender. XML::Simple can use XML::LibXML under the hood, but I'm still seeing it as the major CPU drain in my CalDAV testing right now.
It's worth giving it a try if speed is a major consideration for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With