Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^6: XML::Twig and threads

by BrowserUk (Pope)
on Nov 29, 2012 at 02:49 UTC ( #1006146=note: print w/replies, xml ) Need Help??

in reply to Re^5: XML::Twig and threads
in thread XML::Twig and threads [solved]

I vaguely imagined rewriting managedObject sub using regex,

Given the size of the OPs target files -- 100MB -- I'd drop the use of XML parser entirely and process the file as text.

That statement is tantamount to blasphemy around here, but it would be quicker, simpler and would work. And nobody would think twice if the files weren't labeled "XML".

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

Replies are listed 'Best First'.
Re^7: XML::Twig and threads (regex)
by tye (Sage) on Nov 29, 2012 at 03:15 UTC

    Me too. :)

    - tye        

Re^7: XML::Twig and threads
by grizzley (Chaplain) on Nov 29, 2012 at 13:18 UTC
    Haha, that was good one. I tried mentioned replacement and it's under 2 minutes for 90MB XML file, so I would expect 0.5h for max data set. Thanks for hints!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006146]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2018-05-27 09:03 GMT
Find Nodes?
    Voting Booth?