in reply to Re: XML::Twig and threads
in thread XML::Twig and threads [solved]
Many objects (1752 in 93MB file) and each object has list of attributes (up to 700 in 93MB file).<object some_param="abc" other_param="def"> <attrib1>val1</attrib1> <attrib5>val3</attrib5> </object> <object some_param="xxx"> <attrib3>valx</attrib3> <attrib7>valy</attrib7> </object> <object some_param="xyz"> <attrib1>valx</attrib1> <attrib2>valy</attrib2> <attrib3>valx</attrib3> <attrib4>valy</attrib4> <attrib5>valx</attrib5> <attrib6>valy</attrib6> <attrib7>valx</attrib7> <attrib8>valy</attrib8> </object>
He further clarified that his concern is yet something else, namely he reads the file into memory, does alterations to some params and writes back to another file. This altered data is used to test the system - e.g. 150 different versions of 10MB file written to one file which is then 1.5GB -> so if we can manage inserting threads into managedObject => \&handle_fasade function it may be really of some help while producing output.
Simple program reading 100MB XML file took 2 minutes and 3.5GB RAM, I think his 30 hours may be out-of-physical memory problem. I'll add more details tomorrow.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XML::Twig and threads
by BrowserUk (Patriarch) on Nov 26, 2012 at 16:36 UTC | |
|
Re^3: XML::Twig and threads
by remiah (Hermit) on Nov 27, 2012 at 09:01 UTC |