Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Benchmarks of XML Parsers

by samtregar (Abbot)
on Apr 28, 2009 at 18:25 UTC ( #760695=note: print w/replies, xml ) Need Help??

in reply to Benchmarks of XML Parsers

Thanks, good stuff. If you get a chance you might throw in XML::SAX::ExpatXS, which I seem to remember was pretty fast and also has some nice SAX features the others don't.

I recently working on a project where I replaced HTML::Parser with XML::LibXML using its html parsing mode. The speed improvement was something like 10x (not sure exactly since I made a lot of other changes too).


Replies are listed 'Best First'.
Re^2: Benchmarks of XML Parsers
by ikegami (Pope) on Apr 28, 2009 at 19:56 UTC

    Added XML::SAX::ExpatXS.

      Cool. Looks like it's still the fastest SAX parser, but that doesn't help so much when you're trying to build a tree in memory. Much faster to do it directly.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://760695]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2020-10-22 22:15 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (230 votes). Check out past polls.