in reply to
Re: XML::Twig and threads
in thread XML::Twig and threads [solved]
I did a simple test:
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{
}
and the output was:
# Time: 149s, 3.5GB RAM
# Script quits after 71s
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.