in reply to Re^2: XML::Twig and threads
in thread XML::Twig and threads [solved]
So you are right - 2 minutes is not much time. What worries me is 3.5GB RAM
I'll bet £1 to 1p that if you comment out the use threads;, the memory consumption will barely change.
It is not at all uncommon for a 100MB XML file to translate into 3.6GB of ram requirement once it has been parsed and the equivalent data structure constructed.
The memory requirement has nothing to do with threading. Just Perl's well-known tendency to trade memory for cpu.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: XML::Twig and threads
by grizzley (Chaplain) on Nov 28, 2012 at 09:57 UTC | |
by BrowserUk (Patriarch) on Nov 28, 2012 at 13:44 UTC | |
by grizzley (Chaplain) on Nov 29, 2012 at 08:03 UTC |