in reply to Re: enabling XML::Rabbit serialization
in thread enabling XML::Rabbit serialization
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: enabling XML::Rabbit serialization
by Jenda (Abbot) on Dec 28, 2012 at 11:50 UTC | |
by glasswalk3r (Friar) on Jan 04, 2013 at 00:46 UTC |