in reply to Parallel HTTP requests under mod_perl2
The threaded model generally has significantly worse performance because of the way Perl threads work. On the mod_perl list, we recommend prefork for those that can use it (i.e. everyone but Win32).
More likely, LWP::Parallel::UserAgent is just not very fast. I suggest you try using a fast one like HTTP::MHTTP or HTTP::GHTTP and switching to a forking model where you fork (yes, it's okay to fork from mod_perl) and write the responses back to a file or database. A prefork model is also possible but harder to code all the IPC stuff for.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parallel HTTP requests under mod_perl2
by StoneTable (Beadle) on Mar 08, 2006 at 13:33 UTC | |
by perrin (Chancellor) on Mar 08, 2006 at 13:49 UTC |