Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: XML::Twig and threads

by roboticus (Chancellor)
on Nov 26, 2012 at 13:09 UTC ( #1005644=note: print w/ replies, xml ) Need Help??

in reply to XML::Twig and threads [solved]


It sounds like your friend is confusing "parsing" with "processing". There's no way a 10MB file should take a minute to parse, much less 30 hours. Mirod's suggestion to parse the XML file and pass the parsed data to a processing subroutine in threads should be better. (Assuming, of course, that it's not a CPU or memory bound task.) That way you don't have to figure out how to parse XML in parallel, which is a can of worms.


When your only tool is a hammer, all problems look like your thumb.

Comment on Re: XML::Twig and threads

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005644]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2015-12-01 10:26 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (798 votes), past polls