Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Your observation is right Jenda, but I would like to give a try to Sereal since it seems to be faster and use less memory. And yes, the script executes very quickly since it will be a Nagios plugin. Parsing the XML once is useful because somebody must configure de plugin, but for later executions, recovering the data from the XML as plain Moose objects would be faster and use less memory. After parsing the XML, it is just a matter to save the new objects in the file system and recovering them latter. Since of it like a cache. Looks like I will need to clone the XML::Rabbit objects by copying their "attributes" to plain Moose objects.
Alceu Rodrigues de Freitas Junior --------------------------------- "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill In reply to Re^2: enabling XML::Rabbit serialization
by glasswalk3r
|
|