Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Is it wiser to move on from XML::Simple to XML::Compile ( XML::Hash::XS )

by Jenda (Abbot)
on Jan 27, 2014 at 12:29 UTC ( #1072217=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Is it wiser to move on from XML::Simple to XML::Compile ( XML::Hash::XS )
in thread Is it wiser to move on from XML::Simple to XML::Compile

XML::Rules might be slightly quicker than XML::Simple, because it doesn't try to guess what would be the best way to convert the XML into a data structure, but that's not the main reason you should switch. The problem with XML::Simple is that (even if you do specify some options) the datastructure it generates is not consistent. Things like optional attributes and repeated tags may cause hard-to-handle inconsistencies. Well set XML::Rules will give you a consistent datastructure and allow you to ignore and skip data you are not interested in. This may lessen the memory footprint and speed things up.

Jenda
Enoch was right!
Enjoy the last years of Rome.


Comment on Re^3: Is it wiser to move on from XML::Simple to XML::Compile ( XML::Hash::XS )

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2014-11-01 13:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    If a safe, affordable anti-ageing treatment that extended life indefinitely were to become available, would you take it?



    Results (4 votes), past polls