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.
In reply to Re^3: XML::Twig and threads
by BrowserUk
in thread XML::Twig and threads [solved]
by grizzley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |