gferguson has asked for the wisdom of the Perl Monks concerning the following question:
My first pass was quick 'n dirty, running single-threaded using LWP::UserAgent, and took over seven hours.
Now that I've got a chance to do some additional coding, I want to change to some sort of parallel gets.
For other tasks I tried using LWP::Parallel, but didn't see a huge speed-up.
As a different task I wrote some parallel gets using threads, which seemed to scale well and ran faster, but that warning that threads isn't ready for prime-time use when I build Perl always makes me nervous.
I looked at POE, but haven't built anything significant. It seems like it's more than adequate for the task, but, at the same time I feel like it's the elephant-gun approach - way too much for what should be a simple task of walking a list of URLs.
I'm leaning towards resurrecting my threads + LWP::UserAgent code because it seemed to be robust and fast(er).
What are the thoughts from the collective mind here about LWP::UserAgent and threads vs. LWP::Parallel vs. POE. And, is there something I might have missed?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: running multiple LWP gets
by zentara (Cardinal) on May 25, 2007 at 17:34 UTC | |
by gferguson (Acolyte) on May 25, 2007 at 18:57 UTC | |
by zentara (Cardinal) on May 25, 2007 at 19:34 UTC | |
|
Re: running multiple LWP gets
by Fletch (Bishop) on May 25, 2007 at 17:37 UTC | |
by gferguson (Acolyte) on May 25, 2007 at 18:52 UTC | |
|
Re: running multiple LWP gets
by clueless newbie (Curate) on May 26, 2007 at 13:07 UTC |