Bio::Root::HTTPget is an alternape LWP::UserAgent mechanism, but I'm not sure about the benchmarks. It looks pretty small, so it should be pretty quick.
Kanji already mentioned HTTP::GHTTP
However, my advice is to check your bottlekneck first. Are you sure you own bandwidth isn't limmiting you? If you have a 56k connection, and are downloading a 200kb file, then that's probably the real problem. On the other hand, it's possible it is the module, and I guess I'd use one of these two (I'd adapt Bio::Root::HTTPget, personally.)
Gyan Kapur
gyan.kapur@rhhllp.com
| [reply] |
I think you'll need to identify a little more about what the "speed issues" are. Some timings, comparisons, maybe show some code before we would be able to make any useful suggestions.
Nah! Your thinking of Simon Templar, originally played by Roger Moore and later by Ian Ogilvy
| [reply] |
Well I just am looking for XS modules that do what LWP does essentially. I checked out Curl::easy -- which uses libcurl to grab pages ... was wondering if there are others?Or to put it a different way, what alternatives are there to using LWP to get/post webdocuments inprocess?
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen
wisely..."
| [reply] |
Offhand, I can only think of HTTP::GHTTP (alt.), which even provides some comparative benchmarks ...
Benchmark: timing 1000 iterations of ghttp, lite, lwp...
ghttp: 8 wallclock secs ( 0.96 usr + 1.16 sys = 2.12 CPU)
lite: 21 wallclock secs ( 3.00 usr + 3.44 sys = 6.44 CPU)
lwp: 18 wallclock secs ( 9.76 usr + 1.59 sys = 11.35 CPU)
It may be a little too "lite" for your needs, though, in which case ... perhaps rolling your own with IO::Socket or -gasp- the lower level Socket and friends?
--k.
| [reply] [d/l] |
An alternative would be to use LWP under mod_perl.
If you are only testing one http request, you may not notice a difference. But if you are doing several in a loop, Mod_perl is worth the time to install and run.
I timed a HTTP request for 500 static html pages on my RHL server with a perl script. Without mod_perl, it took me 39.25 seconds to request 500 pages. With mod_perl, it took 3.34 seconds.
I saved 36 seconds with mod_perl.
| [reply] |