|Perl: the Markov chain saw|
Re^4: Is there any XML reader like this? (XML::Simple beats LibXML hands down in the speed stakes!)by BrowserUk (Pope)
|on Jan 15, 2012 at 13:23 UTC||Need Help??|
And that's not even mentioning the fact that XML::LibXML is 20x faster
BTW. Even that factually correct claim only tells half the story. Generate a simple and fairly modest XML file using this:
Now run XML::Simple & XML::LibXML scripts that parse that file and iterate the contents and time them:
All the time you gained during parsing, you throw away four-fold when accessing the data through the nightmare interface of OO baloney.
And if you double the file size:
And now LibXML takes 8 times as long:
Increase the file size 10-fold and LIbXML will take 100 time longer.
Now look carefully at the split times. XML::Simple's parsing time is slow, but linear with the file size. It's traversal time is extremely fast and also linear.
Conversely, LibXML's parsing time is very fast and linear; but it's traversal time is horribly slow and quadratic with the file size.
It is easy to see which one wins in the speed stakes.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.