<?xml version="1.0" encoding="windows-1252"?>
<node id="1005705" title="Re^3: XML::Twig and threads" created="2012-11-26 11:11:07" updated="2012-11-26 11:11:07">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;So you are right - 2 minutes is not much time. What worries me is 3.5GB RAM&lt;/i&gt;&lt;/blockquote&gt;

&lt;p&gt;I'll bet £1 to 1p that if you comment out the &lt;c&gt;use threads;&lt;/c&gt;, the memory consumption will barely change.

&lt;p&gt;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. 

&lt;p&gt;The memory requirement has nothing to do with threading. Just Perl's well-known tendency to trade memory for cpu.

&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'&lt;/div&gt;
&lt;div&gt;Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.&lt;/div&gt;
&lt;div&gt;"Science is about questioning the status quo. Questioning authority". &lt;/div&gt;
&lt;div&gt;In the absence of evidence, opinion is indistinguishable from prejudice.
&lt;p align=right&gt; [http://thebottomline.cpaaustralia.com.au/|RIP Neil Armstrong]&lt;/p&gt;&lt;/div&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;blockquote</field>
<field name="root_node">
1005623</field>
<field name="parent_node">
1005701</field>
</data>
</node>
