in reply to Re: XML::Twig and threads
in thread XML::Twig and threads [solved]
I did a simple test:
and the output was:use XML::Twig; use threads; $start = time; $t= XML::Twig->new(twig_roots => {managedObject => \&handle_fasade}); $t->parsefile('inputFiles/input100MB.xml'); print "Time: ", time-$start; sub handle_fasade{ }
So you are right - 2 minutes is not much time. What worries me is 3.5GB RAM, because of further clarification in Re^2: XML::Twig and threads.# Time: 149s, 3.5GB RAM # Script quits after 71s
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: XML::Twig and threads
by BrowserUk (Patriarch) on Nov 26, 2012 at 16:11 UTC | |
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 |
In Section
Seekers of Perl Wisdom