AnK_ has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, I spent considerable time trying to figure out why the following code works fast on some sites and very slow on others. All sites are equally fast in Firefox.
my $start_page = 'https://www.yahoo.com';#fast #$start_page = 'https://github.com'; #fast #$start_page = 'https://metacpan.org'; #fast my $mech = WWW::Mechanize->new()->get( $start_page );
Replacing WWW::Mechanize with WWW::Mechanize::Firefox corrects the problem. However requires Firefox I am trying to avoid. I attempted to analyze 'get' request in Firefox using Tamper Data but could not figure out what is the difference. At this point I kindly request your wisdom. Please be specific as much as posiible - I am not an expert in programming in general and in perl specifically. Thank you in advance.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Slow WWW::Mechanize->get
by roboticus (Chancellor) on Jan 26, 2013 at 00:54 UTC | |
by Anonymous Monk on Jan 26, 2013 at 01:40 UTC | |
by roboticus (Chancellor) on Jan 26, 2013 at 02:17 UTC | |
by AnK_ (Initiate) on Jan 26, 2013 at 02:26 UTC | |
by Anonymous Monk on Jan 26, 2013 at 01:49 UTC | |
by AnK_ (Initiate) on Jan 26, 2013 at 02:11 UTC | |
by Anonymous Monk on Jan 26, 2013 at 01:11 UTC |
Back to
Seekers of Perl Wisdom